Port St. Lucie, FL
Posts: 36 since Jul 2016
Thanks Given: 22
Thanks Received: 37
|
Hello,
I have a quick question that I am hoping someone can help me with.
I have an automated strategy in which I have a profit target and stop loss.
When trading in sim mode (Not real money, but sim money) my fills sometimes match my target but not always.
I have my profit target set at $200.00 and sometimes it will get filled and I end up with 2 ticks higher or lower.
I know it is not a slippage issue because it is Emini and I can see there are no gaps.
Here is how I have the automation page set up. Can anyone see a problem with my settings that would cause this?
Thanks in advance,
Donovan
Also Here is the code I am using:
Profit Target Code:
[IntrabarOrderGeneration = false]
inputs: Target( 200 ) ;
Variables:
PositionBasis( TRUE );
if PositionBasis then
SetStopPosition
else
SetStopShare ;
SetProfitTarget( Target ) ;
___________
Stop Loss Code:
[IntrabarOrderGeneration = false]
inputs: Amount( 200 ) ;
Variable:
PositionBasis( TRUE );
if PositionBasis then
SetStopPosition
else
SetStopShare ;
SetStopLoss( Amount ) ;
|