Build an EA (Expert Advisor) based on the open source SUPDEM indicator that I have attached.
The indicator basically draws supply zones as rectangles above current price a demand zones below current price. When zones are broken, they will disappear.
You will probably need to study a bit the indicator in order to understand how the EA can interact with it.
The GENERAL RULES for the EA strategy are:
• M15 timeframe ONLY
• Supply/Demand zones timeframe is always M30 (supdem-indicator parameter must be set correctly inside the EA)
• If Price is at Supply level, only SELL order allowed.
• If Price is at Demand level, only BUY order allowed
• Only 1 opened trade is allowed per zone (but if a trade reaches its target and closes, the same zone can be used for another trade)
• STOP LOSS is placed with the order if allowed or immediately after if ECN-broker.
• TAKE PROFIT is placed with the order if allowed or immediately after if ECN-broker.
I will provide additional details about buy/sell signals and the trade management rules by PM.