工作已完成
指定
EA is running as „stop and reverse“ with Martingale ratio determined by user and hedge trade. EA uses next logic to enter the trade and that is price crossing trendline and closing above or below it (Long trade (buy) – true or false (if false then short trade-sell)). When EA enters the for example Buy it enters with market order and places SL (stop loss) and TP (take profit). EA places all other orders as pending orders. EA runs as stop and reverse so every time trendline trade hits SL it will reverse position with Martingale ratio determined by user
i.e. „Position size settings“ is that martingale ratio
extern string PositionSizeSettings = "-= Position Size Settings =-";
extern double PSize1 = 1.00; //market order
extern double PSize2 = 1.25; // reverse 1
extern double PSize3 = 1.31; // reverse 2
When EA enters original trendline trade it will also place pending order for Hedge trade on StopLoss of the trendline trade with reverse TakeProfit and StopLoss values
Very Important
EA uses trendline only as entry signal for that first trade, and after that it will LOOP with reverse until original trade hits TP.
So EA doesn’t use trendline for another signal until LOOP is finished.
Hedge trade will be placed only in the direction of initial original trendline trade. So that means if original trendline trade on the breakout of the trendline was buy trade only buy hedge trade’s will be placed as long loop continues. (Same rule applies if original trendline trade was Sell trade only SELL Hedge trades will be placed.)