指定
1. General idea - I'd like an EA that is capable of using values of two Super Trends to open trades (super trend equation is High+Low/2) + or - (Multiplier * ATR)) . You can call one Super Trend long, and the Super Trend short, long being the Super Trend that is farther from the current price, and the short one being closer to the current price. The buy or sell order would be placed once both super trends are on the same side on the current candle.
2. Trade trigger - The previous bar close must be > both the long and the short Super Trend for a buy. For a sell, the previous close must be < both the long and short. No more than 1 order placed per bar.
3. Inputs - I will need inputs for the ATR periods (2) and multipliers (2), number of maximum open orders, take profit in points, order size in lots, and magic number for multiple pairs.
4. Trade management - Open orders at market only, no stop or limit orders. Stop loss/trailing stop tied to "Long" (farther away) super trend and trail as it increase/decreases. No time limit on closing trade, GTC.
5. Other comments - I already have an indicator that I can put on my chart, so the hatching is not necessary, I just need something that will place the trade and minor money management. If it helps, I can send you the mq5 code for what I currently have for an indicator, this should cover the basic coding for the swapping from buy/sell, ATR, and main equation for the current bar. You'd have to copy it of course and change the variable names I'm guessing for the long and short super trends.