ozzymandius
Junior member
- Messages
- 10
- Likes
- 0
Hello. Hoping some people with Forex trading experience (esp. auto trading) can chime in here.
I have yet to trade, but have been trying out different mechanical Forex systems in backtester software (AmiBroker) then forward-testing those systems on out-of-sample data. I have a database of 6 years worth of historical, 1-minute Forex data for the major pairs.
But here's the rub - in the backtester, it makes a HUMONGUS difference if the sellprice/coverprice is set to either Close or High or Low. Profitable systems can turn into huge losers just by changing what the exit price is on the same bar.
I know we can set SellPrice and CoverPrice from within any trading software like AmiBroker, and even set minimum profits levels and what not with coding. But what about the actual Sell and Cover Prices? Is there any way to set minimum fullfillment Prices (for Forex, not stock trading)? And eventually feed those prices into the broker's interface in an automated fashion?
For example let's say I buy EURUSD at 1.5305 and my trading code has a profit target at 1.5310 (5 pips). When a sell signal is triggered by my code and I send in a sell order, the price of the next bar might be fluctuating anywhere from 1.5300 to 1.5320 (or wider). I want to ensure that the actual sell price is at minimum 1.5310. In real life trading, is there any way to specify that? Or will the broker just secure a price, at market, at the instant they receive my sell order?
And finally, given the realities of trading, what, if any, is a realistic backtester SellPrice and CoverPrice? To be conservative should SellPrice always be set to Low and CoverPrice always be set to High? Or is Close a good compromise for both that mimics an "average fill price" that one is likely to see in the market? In other words, how can we simulate the most realistic fill prices?
Please excuse my newbie ignorance if my questions are a bit off base!
Any feedback much appreciated.
I have yet to trade, but have been trying out different mechanical Forex systems in backtester software (AmiBroker) then forward-testing those systems on out-of-sample data. I have a database of 6 years worth of historical, 1-minute Forex data for the major pairs.
But here's the rub - in the backtester, it makes a HUMONGUS difference if the sellprice/coverprice is set to either Close or High or Low. Profitable systems can turn into huge losers just by changing what the exit price is on the same bar.
I know we can set SellPrice and CoverPrice from within any trading software like AmiBroker, and even set minimum profits levels and what not with coding. But what about the actual Sell and Cover Prices? Is there any way to set minimum fullfillment Prices (for Forex, not stock trading)? And eventually feed those prices into the broker's interface in an automated fashion?
For example let's say I buy EURUSD at 1.5305 and my trading code has a profit target at 1.5310 (5 pips). When a sell signal is triggered by my code and I send in a sell order, the price of the next bar might be fluctuating anywhere from 1.5300 to 1.5320 (or wider). I want to ensure that the actual sell price is at minimum 1.5310. In real life trading, is there any way to specify that? Or will the broker just secure a price, at market, at the instant they receive my sell order?
And finally, given the realities of trading, what, if any, is a realistic backtester SellPrice and CoverPrice? To be conservative should SellPrice always be set to Low and CoverPrice always be set to High? Or is Close a good compromise for both that mimics an "average fill price" that one is likely to see in the market? In other words, how can we simulate the most realistic fill prices?
Please excuse my newbie ignorance if my questions are a bit off base!
Any feedback much appreciated.
Last edited: