EA to enable Automated trading ?

Locked
ianp
Trader
Posts: 83
Joined: Tue Nov 15, 2011 9:58 pm

EA to enable Automated trading ?

Post by ianp »

I am looking for a EA that will enable automated trading at a certain time . as I am in Australia I am often asleep when the US news comes out and I would like to activate to get my HGB Ea to start after the news.

I know a lot of EAs can have a time function built in , I was just wondering if anyone had come across one that just activates the Auto trading button on Empty4

Thanks
Ian
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

EA to enable Automated trading ?

Post by renexxxx »

ianp » Wed Apr 15, 2015 8:16 am wrote:I am looking for a EA that will enable automated trading at a certain time . as I am in Australia I am often asleep when the US news comes out and I would like to activate to get my HGB Ea to start after the news.

I know a lot of EAs can have a time function built in , I was just wondering if anyone had come across one that just activates the Auto trading button on Empty4

Thanks
Ian
Hi Ian,

That would obviously have to be a script, not an EA. How can an EA run, to enable itself when EAs are disabled?

Attached is a script that will do the job.
You do not have the required permissions to view the files attached to this post.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

EA to enable Automated trading ?

Post by milanese »

ianp » Tue Apr 14, 2015 10:16 pm wrote:I am looking for a EA that will enable automated trading at a certain time . as I am in Australia I am often asleep when the US news comes out and I would like to activate to get my HGB Ea to start after the news.

I know a lot of EAs can have a time function built in , I was just wondering if anyone had come across one that just activates the Auto trading button on Empty4

Thanks
Ian
In general the simpleAllPairTradeManger ---click--> http://www.stevehopwoodforex.com/phpBB3 ... =21&t=4081 can activate after a certain time autotrading you can take a look into the code

Cheers :)

Tommaso
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

EA to enable Automated trading ?

Post by milanese »

renexxxx » Tue Apr 14, 2015 10:49 pm wrote:
ianp » Wed Apr 15, 2015 8:16 am wrote:I am looking for a EA that will enable automated trading at a certain time . as I am in Australia I am often asleep when the US news comes out and I would like to activate to get my HGB Ea to start after the news.

I know a lot of EAs can have a time function built in , I was just wondering if anyone had come across one that just activates the Auto trading button on Empty4

Thanks
Ian
Hi Ian,

That would obviously have to be a script, not an EA. How can an EA run, to enable itself when EAs are disabled?

Attached is a script that will do the job.
it can.. see simpleAllPairTM

Code: Select all

 if(doUseReactivateExpertsAfterClose==true && IsExpertEnabled()==false)
     {
      doEnabaleEA();
void doEnabaleEA()
  {
   if(expertsDisabeled==true)
     {
      if(TimeElapsedSinceLastHistoTrade()>DeltaTimeHistoTrades)
        {

        //..
         if(windowHdlFound>0) PostMessageA(windowHdlFound,WM_COMMAND,33020,0);
         Sleep(3000);
         if(IsExpertEnabled()==true && expertsDisabeled==true)
           {
            Alert("EquitySL/TP"+": Now ExpertAdvisors are re-activated!");
            expertsDisabeled=false;
           }
         if(IsExpertEnabled()==false)
           {

            Alert("EquitySL/TP"+" was unable to re-activate all EAs at "+TimeToStr(TimeLocal()));
            expertsDisabeled=true;
           }
        }

     }

  }
     }
Cheers :)

Tommaso
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

EA to enable Automated trading ?

Post by renexxxx »

Agreed, the OnTimer() event handler will continue to be called, but not the OnTick()
ianp
Trader
Posts: 83
Joined: Tue Nov 15, 2011 9:58 pm

EA to enable Automated trading ?

Post by ianp »

Hi Rene & Milanese,

Thank you for the replys , as usual I did not explain what I need very well .

I am looking for a script ? to enable auto trading at a specific time e.g 01.05 local time on my computer , so I can go to bed with auto trading turned off and my Empty4 will let HGB start trading all the pairs I have it on at a pre-set time .

Thanks
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

EA to enable Automated trading ?

Post by renexxxx »

ianp » Wed Apr 15, 2015 1:22 pm wrote:Hi Rene & Milanese,

Thank you for the replys , as usual I did not explain what I need very well .

I am looking for a script ? to enable auto trading at a specific time e.g 01.05 local time on my computer , so I can go to bed with auto trading turned off and my Empty4 will let HGB start trading all the pairs I have it on at a pre-set time .

Thanks
Hi Ian,

It would need to be an EA that runs the OnTimer() event every so now and then, to check the time and switches the Auto Trading On/Off. Have a look at the attached EA. I don't know if Tommaso's code can do this as well -- I haven't looked at his code. In any case, you can use my code as a starting point. In the attached file, the HourOn and HourOff parameters are supposed to be in the time zone of the local PC.
You do not have the required permissions to view the files attached to this post.
ianp
Trader
Posts: 83
Joined: Tue Nov 15, 2011 9:58 pm

EA to enable Automated trading ?

Post by ianp »

renexxxx » Wed Apr 15, 2015 2:08 pm wrote: Hi Ian,

It would need to be an EA that runs the OnTimer() event every so now and then, to check the time and switches the Auto Trading On/Off. Have a look at the attached EA. I don't know if Tommaso's code can do this as well -- I haven't looked at his code. In any case, you can use my code as a starting point. In the attached file, the HourOn and HourOff parameters are supposed to be in the time zone of the local PC.

Thanks Rene ,

That works great :clap:
BobbyT
Trader
Posts: 232
Joined: Thu Aug 21, 2014 1:34 am
Location: Seattle

EA to enable Automated trading ?

Post by BobbyT »

renexxxx » Wed Apr 15, 2015 2:08 pm wrote: Hi Ian,

It would need to be an EA that runs the OnTimer() event every so now and then, to check the time and switches the Auto Trading On/Off. Have a look at the attached EA. I don't know if Tommaso's code can do this as well -- I haven't looked at his code. In any case, you can use my code as a starting point. In the attached file, the HourOn and HourOff parameters are supposed to be in the time zone of the local PC.
Sorry to necro this thread but I have to say thank to Rene. Again!

I was just about to give in getting Tomasso's code to work and resort to GVs when I found this :hi:
Procrastination provides exponentially negative returns - BobbyT
ymleong

EA to enable Automated trading ?

Post by ymleong »

Hi Tom,

I was helping a clueless trader to search for a EA that can read news events from FF site, and able to allow him to have few settings to turn off autotrading by his other EA, such as

1) TurnOffEABefNews
(time parms, accept minutes)
2) TurnOnEAAfterNews
(minutes parm)
3) FilterMajorNews (boolean)
4) FilterMediumNews (boolean)
5) FilterMinorNews (boolean)

It doesnt have to have exact parms above but at least able to have the TurnOff/TurnOn parms. The news filter parm is to allow him to specify TRUE/FALSE to enable EA to detect when to turn it off. Eg he only wants it turn off for major news events, and he can specify in minutes how long he wished to turn his auto trading off/on. Eg he wants to turn off his trading EA 1hr before major news only and on 30mins after that.

Autotradeswitcher looks ok but there is no ability for EA to read news events. If u know of any pls let me know.
Locked

Return to “Utilities”