This is kind of an updated version. The one you posted doesn't look like it will repaint.
Re: MT4 Indicators with alerts/signals
3361- These users thanked the author mrtools for the post (total 2):
- som3nam3, pipsquirrel
This is kind of an updated version. The one you posted doesn't look like it will repaint.
Thank you!mrtools wrote: Fri Nov 06, 2020 12:02 pm
This is kind of an updated version. The one you posted doesn't look like it will repaint.
hi mrtools
Code: Select all
if ((fasterMAnow > slowerMAnow) && (fasterMAprevious < slowerMAprevious) && (fasterMAafter > slowerMAafter)) {
CrossUp[i] = Low[i] - Range*0.5;
}
else if ((fasterMAnow < slowerMAnow) && (fasterMAprevious > slowerMAprevious) && (fasterMAafter < slowerMAafter)) {
CrossDown[i] = High[i] + Range*0.5;
Try this one.pipsquirrel wrote: Tue Nov 10, 2020 7:28 pm
hi mrtools
if kindly this last latest version can be altered according to this meth
in example picture aqua/magenta lines and dots by your latest version and blue/red arrows by this methCode: Select all
if ((fasterMAnow > slowerMAnow) && (fasterMAprevious < slowerMAprevious) && (fasterMAafter > slowerMAafter)) { CrossUp[i] = Low[i] - Range*0.5; } else if ((fasterMAnow < slowerMAnow) && (fasterMAprevious > slowerMAprevious) && (fasterMAafter < slowerMAafter)) { CrossDown[i] = High[i] + Range*0.5;
sorry,my badmrtools wrote: Wed Nov 11, 2020 1:36 am
Could you post a link to the indicator or post the indicator you want modified please?
viewtopic.php?p=1295422798#p1295422798pipsquirrel wrote: Wed Nov 11, 2020 2:47 am
sorry,my bad
here is link and indicator too,you lastly upgraded to additional averages
viewtopic.php?p=1295417129#p1295417129
-------------------------------
also posting the referenced indicator "MA Crosses OC signal" willing to be coded crossing signals alike
greetings
big thanks mrtools for your kind help and so early response,your greatness
hi mrtools
Don't know, but do know the Ma Cross OC is a repainter. Check out the fasterMAafter and the slowerMAafter(i-1) both are trying to look into the future.pipsquirrel wrote: Wed Nov 11, 2020 5:12 am
hi mrtools
can you please review the logic code part as i see a bit difference displaying arrows,your this newest signaling more arrows than that of "ma cross oc"
both with same parameters
in picture white/gold arrows by your indicator
Code: Select all
fasterMAnow = iMA(NULL, 0, FasterMA, 0, FasterMode, PRICE_CLOSE, i);
fasterMAprevious = iMA(NULL, 0, FasterMA, 0, FasterMode, PRICE_CLOSE, i+1);
fasterMAafter = iMA(NULL, 0, FasterMA, 0, FasterMode, PRICE_CLOSE, i-1);
slowerMAnow = iMA(NULL, 0, SlowerMA, 0, SlowerMode, PRICE_OPEN, i);
slowerMAprevious = iMA(NULL, 0, SlowerMA, 0, SlowerMode, PRICE_OPEN, i+1);
slowerMAafter = iMA(NULL, 0, SlowerMA, 0, SlowerMode, PRICE_OPEN, i-1);