Hi again, I still have difficulties in coding this. Maybe someone could advise me please. So far I made signal() checked on every bar open. int signal() { // Execute on bar open if (CheckOncePerBar == true ) { int BarShift = 1 ; if (CurrentTimeStamp != Time[ 0 ])
Hi, I want to check for entry price only within(let say 6 hours (21600seconds)) after MA cross. int start() { // Moving averages double FastMA = iMA ( NULL , 0 ,FastMAPeriod, 0 , 0 , 0 , 0 ); double SlowMA = iMA ( NULL , 0 ,SlowMAPeriod, 0 , 0 , 0 , 0 ); double LastFastMA = iMA (
Hi all, Both order buy and sell are on the same basics, buy ordermodify works well but sell ordermodify only works once(where it should modify every bar with new price untill filled). no errors showing. Ive checked stoplvls , slippage, bid/ask..all i could think of. #property copyright "
Dear community, Please help. I am trying for past week to limit orders to 16 (bars or pending orders) after receiving signal for buy/sell. closest i get was by using argument : if (FastMA>SlowMA && BuyTicket <= 16 && BuyMarketCount( Symbol (),MagicNumber) == 0 ) But thats wrong way. I tried to
Hi, I want to learn programming in mql 4&5, started 2 weeks ago. But so far i didint find any type of resolution for my system. System generate signal after MA crossing - i know how to do this. System than place pending order buy/sell from MA level. As price bounce lvl. I dont know if it is possible