Can somebody help with the following to enable me to program my strategy:
a) How to implement price based trailing stop loss i.e I want to sell x% below the last max price and buy x% above the last min price.
b) How can I define the buy and sell price other than the High, Low, Average, Open, close of the candle. I want to use price based trigger. If my price level is achieved in a particular candle, the simulation should consider my trigger price as the buy/sell price.