i_AvgEntryPrice is not applicable to this type of study

Questions about MultiCharts and user contributed studies.
martingale
Posts: 91
Joined: 10 Dec 2010
Has thanked: 2 times
Been thanked: 1 time

i_AvgEntryPrice is not applicable to this type of study

Postby martingale » 14 Jun 2012

i have this line of code in my indicator

Code: Select all

if Low - i_AvgEntryPrice < -maxloss then
when complied it tells me
i_AvgEntryPrice is not applicable to this type of study

mc wiki says i_avgEntryPrice can be used in indicators.

https://www.multicharts.com/trading-sof ... EntryPrice

thank you.

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

Re: i_AvgEntryPrice is not applicable to this type of study

Postby Henry MultiСharts » 15 Jun 2012

i have this line of code in my indicator
if Low - i_AvgEntryPrice < -maxloss then
when complied it tells me
i_AvgEntryPrice is not applicable to this type of study
mc wiki says i_avgEntryPrice can be used in indicators.
https://www.multicharts.com/trading-sof ... EntryPrice
thank you.
Hello Martingale,

The error lies further in the code, after the word "then".
Can you please submit a complete piece of code that is causing the error?


Return to “MultiCharts”