I am trying to complete a code for automatic trading. I want to use trailing stop, but would like to know following:
Does the minimum amount for stoploss need to be the one provided by IG (am using IG as broker)? E.g. 25 points for DAX? Or would ProOrder be able to handle lower number?
Can I somehow use time delay in the trailing stop? E.g. it should stop after 10-15 sec?
Also, when I backtest the strategy – I guess I need to consider the spread in buy/sell rates?
IG always sets the minimum points away from a SL- however it not 25 points but rather between 6 and 10 for IG DAX. PRT needs to uphold this limmit or IG will reject the order.
you Traling stop will be recalculated at the beginning ofeach timeframe you use for your Proorder- so I don’t see a possibility of a delay.
However there is a code that is more refined than the standard build in traling SL, that might be useful.
I am experimenting an aggresive scalper for DAX using stochastics between 80 and 20 values for shorts and longs respectively. To maximize gaing and winning trades, I want to try a tight trailing stop, while the TP would be 1.5% away. I also need to consider the spread.
How would you advise to integrate a tight SL and still have 85%+ winning trade and maximum gain loss ratio??
I also tried to make a scalping code, but realized as long as I was not allowed 2 points SL in DAX it would not be profitable. However when the possibility for multiframe coding becomes available in 10.3 it is perhaps possible.
I don’t know really how to make the tight SL as IG would have considerable large spreads on DAX. you could play around with the code from earlier or perhaps use %profit or %loss code. I don’t know how familiar you are with developing code or PRT, but the function here and here would be a great help if you want to optimize your variables. and also be aware of the downside of zero bar trading.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue