Dear all,
i created a system which calculates the highest high and lowest low between 8 and 9 o clock in the morning. Then it starts to buy 2 cfds if the line will be crossed over or under. The stop loss is always the other side. e.g. it opens a short trade at lowest low with a stop loss at highest high and vice versa. The first take profit is the stop loss distance. The second stop loss is the double stop loss distance. If there is a open position it will go flat at 21:00.
Pro Order does not allow me to run the system because it doesnt allow partly closing of positions. Do you have any idea how i can solve this?
The backtest is excellent from my point of view.
Please try the indicator and trading system using the Dax in 2 minutes
Any help is appreciated.
Kind Regards
Peter
It’s not possible now, maybe it will be in a future version.
Maybe you can open 2 BUY orders of 1 contract instead of buying 2 contracts at once. I mean instead of:
if LongEinstieg and EinstieglongFlag = 0 then
buy 2 shares at market
EinstieglongFlag = 1
endif
you can do :
if LongEinstieg and EinstieglongFlag = 0 then
buy 1 shares at market
buy 1 shares at market
EinstieglongFlag = 1
endif
this way PRT sees two different buy orders and you can close one contract at TPlong1 and another at TPlong2.
Same thing with the SELL SHORT orders
Hello, thank you very much for your idea.
The problem is the
sell 1 shares at market
and
exitshort 1 shares at market
PRT does not allow to close only parts of positions.
I solved the problem with the following code
if LongTP1 and EinstieglongFlag = 1 and LongTP1FLag = 0 then
Sell at market
buy 1 shares at market
LongTP1Flag = 1
endif
So i close the whole position and buy immediate one new share. So i lose one point for spread. But it works automatically.
SELL and EXITSHORT close ALL open trades, as of this version of ProOrder.