Is there a setting that lets you set the EntryPrice function to be set on strategy values instead of the actual Entry price?
I can rewrite the code, but I was wondering if there was an easy solution. It seems like a common problem that slippage would throw off stop losses leading to a vastly different strategy in real time.
EntryPrice: Live versus Sim [SOLVED]
-
- Posts: 51
- Joined: 24 Feb 2011
- Location: Atlanta, GA
- Has thanked: 5 times
- Been thanked: 8 times
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2958 times
Re: EntryPrice: Live versus Sim
Hello shadrock55,
Do you mean you want to get the original order price generated by the code instead of actual fill price from broker?
Do you mean you want to get the original order price generated by the code instead of actual fill price from broker?
-
- Posts: 51
- Joined: 24 Feb 2011
- Location: Atlanta, GA
- Has thanked: 5 times
- Been thanked: 8 times
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2958 times
Re: EntryPrice: Live versus Sim [SOLVED]
If your code calculates the order price then that should not be an issue to output it or store it in a variable.Yes, that is what I mean.
-
- Posts: 51
- Joined: 24 Feb 2011
- Location: Atlanta, GA
- Has thanked: 5 times
- Been thanked: 8 times
Re: EntryPrice: Live versus Sim
Yeah, that is what I did. I was wondering if there was a setting that would do it easily. I guess not. Thanks.