DislikedHi anyone able to edit the mq4 code to make it compile with no warnings? {file}Ignored
But it was done in haste.
Attached File(s)
CCI Grid strict.mq4
484 KB
|
222 downloads
1
I will code your pivot EAs for no charge 23 replies
I will code your scalping EAs for no charge 163 replies
Oanda MT4 - Indicators and EAs not showing 2 replies
EAs and indicators relating to moutaki... 22 replies
InterbankFX has loaded its MT4 platform with custom EAs, indicators and scripts 1 reply
DislikedHi anyone able to edit the mq4 code to make it compile with no warnings? {file}Ignored
Disliked...when the A1 (2) was reached, the A2 (0) activates and moves my SL...B1 (3), SL one more time moves to B2 (1) pips, everything still fine, but then the market price suddenly drops to back to A1 (2), at this point, the A condition much stops running and the SL would be B2 (1), but instead, one more time the SL moves back to A2 (0), again and again between A2 and B2. The same case has happened with the C condition. I want to add a code that when the A condition was already activated it much stop immediately, and only counted the B and C conditions,...Ignored
Disliked...have the 10:00 candle defined...high of the current closed candle at 10:00...Ignored
//hour setting int hour = 10; //target day int i_day = 0; //add the hour to the time of the target day long time_hr = iTime(for target day)+hour*60*60; //dont proceed if that time is still in the future //dont proceed if that time is within 1hr of live ie currently forming if(Time[0]<=time_hr+1*60*60)return; //get the candle index that includes that time on the 1hr tf int i_on_hr_tf = iBarShift(on 1hr tf at time_hr); //get the high price double high_hr = iHigh(on 1hr tf at i_on_hr_tf);
Disliked{quote} Written another way, your setup is basically: a_limit = 2; a_sl = 0; b_limit = 3; b_sl = 1; c_limit = 4; c_sl = 2; When price reaches limit x, move to sl y. Say for a buy order, if you dont want the A condition to be re-triggered when price falls back below the B region, you can include in the check for the A condition, that price hasn't moved higher than the B limit, because if price has moved higher than b_limit, then a_limit would have been triggered. Something like- //A for buys if(price>=a_limit, and the highest-high since the order...Ignored
Disliked{quote} Steps would be to get a target time to use, then get the index of a candle on a particular tf you want, that includes that time, and then get the ohlc at that index. Something like- //hour setting int hour = 10; //target day int i_day = 0; //add the hour to the time of the target day long time_hr = iTime(for target day)+hour*60*60; //dont proceed if that time is still in the future //dont proceed if that time is within 1hr of live ie currently forming if(Time[0]<=time_hr+1*60*60)return; //get the candle index that includes that time on the...Ignored