仕事が完了した
指定
I want to make EA that buy and sell based on supertrend with below settings
Settings:
1. Fix Lot:
2. Dynamic Lot Leverage: number as input
Formula -Example my equity of ac is 10000 USD and input lets say 3 i type then it multiple equity 10000* 3=30000 ,
if i choosen asset like nasdaq and price current now is 10000 USD then my lot will be 30000 USD / price= 3 lot , sometime my lot will come 3.1 to 3.5 or 3.6 to 3.9 then make them in odd like 3.1 to 3.5 lot if come i trade only 3 lot and if calculation come 3.6 to 3.9 then i choose 4 lot to trade because some brockers dont allow to trade like 3.1 or 3.6 etc only 3 or 4 lot of nasdaq .
3. Supertrend ATR period : 55 -Default -Can be changed
4. Supertrend ATR multiplier : 2 -Default -can be changed
5. SL in pips: 5000 default -0 to disable
6. TP in pips: 5000 default or 0 to disable
7. Stop trade when equity reached: 8000 USD example or 0 to disable
this stop trades if my equity reach 8000 USD example as 20% loss of my equity.
Thanks