jcl Im trying to use the trade function on one of my strategies that used H1 bars but I want trades to trigger during a bar if certain entry conditions have been met and Ive set the TICKS flag and in my backtest chart results looks to be exactly what it should be yet when I run the strategy in live trading, the trades are not triggering at all and Im just getting a ton of Missed Entry at Bar errors.

Also when I look at the logfile from the backtest that looks correct on the chart results. It shows this:

Quote:

13520: 10.03. 01:00] 0p 2/1
[GBP/USD::S] Missed entry at bar 13520
[AUD/USD::L] Missed entry at bar 13520
[NZD/USD::L] Missed entry at bar 13520
[USD/CAD::S] Missed entry at bar 13520
[USD/CAD::S2103] Short 100@1.0280 Risk 422

[13521: 10.03. 02:00] 0p 3/1
[EUR/USD::S1901] Target 90@1.3589: +129$ at 02:37
[GBP/USD::S] Missed entry at bar 13521
[AUD/USD::L] Missed entry at bar 13521
[NZD/USD::L] Missed entry at bar 13521

[13522: 10.03. 03:00] 1607p 3/1
[GBP/USD::S] Missed entry at bar 13522
[AUD/USD::L] Missed entry at bar 13522
[NZD/USD::L] Missed entry at bar 13522

[13523: 10.03. 04:00] 1607p 3/1
[EUR/USD::S] Missed entry at bar 13523
[GBP/USD::S] Missed entry at bar 13523
[AUD/USD::L] Missed entry at bar 13523
[NZD/USD::L] Missed entry at bar 13523
[EUR/USD::S2403] Short 91@1.3605 Risk 383


The trades on the logfile say they are opening at the start of each bar but the chart results show trades trigging where they should during H1 bars. Any help would be appreciated.

P.S - Here is a code Im using for entry just incase Im doing something wrong.
Quote:

if(ConditionA > ConditionB && NumOpenLong == 0) {
Entry = EMA1[0] - Close[0];
Stop = 10*PIP;
TakeProfit = 50*PIP;
enterLong(0,Entry,Stop,TakeProfit);
}