Entry possibilities on 2 points, Exit Possibilities on 2/3 points & stop loss

Example 1 (If selecting 2 Units)
Buy 2 units at 100, 2nd entry of 1 unit if price comes within the validity of signal at 95 (5% lower), stop loss at 90 for all (10% lower)
Sell 50% at 105 (5% higher)^
Exit balance with trail by x % with stoploss at cost..the position to be closed when signal closes or trail gets hit
^ this may happen that price first come at 105 and then go back to 95, in this case we would have sold 1 unit at 105 in first round and will sell another 1 unit (100% bought 2nd time) when it comes again at 105


Example2 (If selecting 3 Units)
Buy 3 units at 100, 2nd entry of 1 unit if price comes within the validity of signal at 95 (5% lower), stop loss at 90 for all (10% lower)
1st Exit: Sell 1 at 105 (5% higher)^
2nd Exit:Sell 1 at 110 (10% higher)^
once 2nd exit is done: Exit balance with trail by x % with stoploss at cost..the position to be closed when signal closes or trail gets hit

^ this may happen that price first come at 105 and then go back to 95, in this case we would have sold 1 unit at 105 in first round and will sell another 1 unit (100% bought 2nd time) when it comes again at 105



Points:
• I need number of units & percentage input.
• Need alert for all the scenarios given in example
• the above applies for long short both and I will be needing check/uncheck option in strategy for long only or long/short both

Problem for which I need solution
I would like to set different % of stoploss/entry points for different instrument for alerts i.e. stoploss for dow jones may be 2% whereas for Nasdaq it may be 3% samething fgoes for exit points.

Need 3 versions
Version 1, with all the indicators as it is
Version 2- only Supertrend
Version 3- Only 1 MA


programingTrend Analysis

Disclaimer