mql4 programming,i
have an indicator that i put together following a video that i found on
youtube.The indicator identifies pinbars on the chart and plots an
arrow above(for bearish pinbar)and below(for bullish pinbar). What i'm
then trying to do is to have it so that the indicator only plots an
arrow where the pinbar's wick happens to form the new high/low of the
day also this high/low also has to be higher/lower than the previous
day's high/low respectively.I have added images to better explain what i mean incase its unclear.
Hi i'm still very much a novice when it comes to
Files:
what_it_currently_does.png
42 kb
what_i_want.png
47 kb
- Plotting lines in an EA
- Indicator to get Lowest Low of the last 120 candles not working.
- Plotting EA Arrows on Historical Data
you have just to add a condition which compares current wicked low bar to the previous day low:
//.. &&Low[i]<=iLow(_Symbol,PERIOD_D1,1+iBarShift(_Symbol,PERIOD_D1,Time[i]))) //..
...and also condition which compares current wicked high bar to the previous day high
//.. &&High[i]>=iHigh(_Symbol,PERIOD_D1,1+iBarShift(_Symbol,PERIOD_D1,Time[i]))) //..
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register