Hi,
I'm just trying to use a simple indicator like Williams Percent Range (WPR) to enter and exit trades.
The code seems to be working fine but the entry conditions need to be changed but I don't know how to do it.
Right now, it sells when the WPR goes above -20 and buys when it goes below -80.
I need it to sell when it crosses BELOW -20 (from above) and buy when it crosses ABOVE -80 (from below).
The WPR indicator signals are taken on H4.
Any help is very much appreciated.
I'm just trying to use a simple indicator like Williams Percent Range (WPR) to enter and exit trades.
The code seems to be working fine but the entry conditions need to be changed but I don't know how to do it.
Right now, it sells when the WPR goes above -20 and buys when it goes below -80.
I need it to sell when it crosses BELOW -20 (from above) and buy when it crosses ABOVE -80 (from below).
The WPR indicator signals are taken on H4.
Any help is very much appreciated.
Attached File(s)
WPRtest5.mq4
5 KB
|
313 downloads