EntryPrice: Live versus Sim  [SOLVED]

Questions about MultiCharts and user contributed studies.
shadrock55
Posts: 51
Joined: 24 Feb 2011
Location: Atlanta, GA
Has thanked: 5 times
Been thanked: 8 times

EntryPrice: Live versus Sim

Postby shadrock55 » 22 Apr 2015

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.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: EntryPrice: Live versus Sim

Postby Henry MultiСharts » 24 Apr 2015

Hello shadrock55,

Do you mean you want to get the original order price generated by the code instead of actual fill price from broker?

shadrock55
Posts: 51
Joined: 24 Feb 2011
Location: Atlanta, GA
Has thanked: 5 times
Been thanked: 8 times

Re: EntryPrice: Live versus Sim

Postby shadrock55 » 24 Apr 2015

Yes, that is what I mean.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: EntryPrice: Live versus Sim  [SOLVED]

Postby Henry MultiСharts » 24 Apr 2015

Yes, that is what I mean.
If your code calculates the order price then that should not be an issue to output it or store it in a variable.

shadrock55
Posts: 51
Joined: 24 Feb 2011
Location: Atlanta, GA
Has thanked: 5 times
Been thanked: 8 times

Re: EntryPrice: Live versus Sim

Postby shadrock55 » 24 Apr 2015

Yeah, that is what I did. I was wondering if there was a setting that would do it easily. I guess not. Thanks.


Return to “MultiCharts”