Forex Trading 2018- TA/FA- Setups and discussion, page-4539

  1. 8,420 Posts.
    lightbulb Created with Sketch. 59
    Hi Rick, yes I have experienced that problem and got a solution from the Tradeview tech support team. The issue is related to the fact most (all?) markets are closed for a very short time at the start of each day (if you right click on a market in the markets list you will bring up a dialog box - click on specifications and scroll down to the Sessions section) - for example the UJ sessions are from 00:01 - 23:59 each day except Friday where the close is 23:57 - and that there may not be any ticks for several minutes afterwards (in my H12 EA's I poll the market once per minute for the 1st 10 minutes of each 12 hour period to ensure the EA gets the data it needs)


    So if your EA is based on the Daily bar block it will try to execute instructions only once at the start of each day but there may not be anything to execute on. Sometimes there will be but I have found often there is not - hence my Daily examples have sometimes executed orders but I would say only a small percentage of times.


    The work-around to this is to operate on tick (I chose to use M1) and set a logical flag variable that flips from true to false or vice versa when the order has been executed at that level so it doesn't get executed again for that day.


    Hope that makes sense.


    Cheers, Sharks

 
arrow-down-2 Created with Sketch. arrow-down-2 Created with Sketch.