Hello I need help programming one small EA for my trading.
This i how the EA should work:
1. When new bar open first EA look for Daily open price, if above daily open only place long pending stop order and if under only place short pending stop order.
Only one pending order every new bar open.
2. When New bar open of the timefram chosen (must be adjustebly) H1 for exemple and price is above daily open EA put a pending Stop order to the nearest level of 00 or 50 above current price. LEVEL= last two diggits in price exemple price 1,2650 or 1,2600
3. EA should have this settings that can be adjusted by the user.
⦁ TP and SL
⦁ Trailing SL pip by pip
⦁ Static lot size to trade
⦁ Magic number
⦁ Time setting when EA trade (when new pending order be set and old delited)
When new bar opens also close old not triggerd pending orders.
So every new bar all old not triggerd pending orders will be delited and one new pending order will be created.
Open trades will be open until TP SL or on manual close.