Could you explain What the difference between Bars.Low[bar-1] and Low[bar-1] ?
Many thx in advance !
Size:
Color:
I don't think there is any. The only time it would matter is if you had an external symbol (Symbol), in which case you would use Symbol.Low[bar-1] to designate the low for the external symbol as opposed to the symbol the strategy was operating on.
Size:
Color:
Many thx for reply !
Could you tell me how can I introduce external symbol. For example the code below doesn't compile
and gives me error : "the name SPY does not exist in the current context "
CODE:
Please log in to see this code.
Size:
Color:
See GetExternalSymbol() in the QuickRef (F11), which actually contains an example using SPY!
Size:
Color:
And before asking basic questions like this, let me strongly recommend that you review the WealthScript Programming Guide: DataSeries > Accessing Secondary Symbols.
Size:
Color:
Thx for reply and for the reference. Sorry for newbie question.
Size:
Color: