Help out please with this pinbar indicator
Hi i'm still very much a novice when it comes to 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.
Files:
what_it_currently_does.png
42 kb
what_i_want.png
47 kb
- Delete Pending Orders
- Plotting EA Arrows on Historical Data
- PIN BAR Trading Method
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]))) //..