dilmun99
7th December 2004, 01:51 PM
Hi guys
Sorry if I'm repeating myself, but my last question seems to have become lost at the end of an aging post.
I am using the TradeSim code SetProfitStop. It normally only takes a constant % input, as in ExtFml("TradeSim.SetProfitStop", 10).
I want to input a variable, for example based on ATR. I have tried using LastValue but it doesn't seem to work. Jose provided a good but long work around avoiding SetProfitStop altogether which I could potentially add as yet another loop in my Indicator Code - but shouldn't it be possible to find a way to get a variable input into the SetProfitStop formula with only one additional line of code that I can use in the Exploration step?
Maybe another way to approach this question - is there a generic workaround (other than LastValue ) to getting variable input into TradeSim formulae that only take constant inputs?
Sorry to keep on pushing on this.
Andrew
Sorry if I'm repeating myself, but my last question seems to have become lost at the end of an aging post.
I am using the TradeSim code SetProfitStop. It normally only takes a constant % input, as in ExtFml("TradeSim.SetProfitStop", 10).
I want to input a variable, for example based on ATR. I have tried using LastValue but it doesn't seem to work. Jose provided a good but long work around avoiding SetProfitStop altogether which I could potentially add as yet another loop in my Indicator Code - but shouldn't it be possible to find a way to get a variable input into the SetProfitStop formula with only one additional line of code that I can use in the Exploration step?
Maybe another way to approach this question - is there a generic workaround (other than LastValue ) to getting variable input into TradeSim formulae that only take constant inputs?
Sorry to keep on pushing on this.
Andrew