Can someone add a filter to my script so that will only buy if QQQQ is above the 50 day moving average.
I just can't get it right.
Thanks
CODE:
Please log in to see this code.
Size:
Color:
CODE:
Please log in to see this code.
You might want to move the AtClose exit above the AtStop one.
Size:
Color:
Thanks,
But I get this error:
error CS0029 @(13, 22} : Cannot implicitly convert type 'WealthLab.Bars' to 'WealthLab DataSeries'
CODE:
Please log in to see this code.
Size:
Color:
Oops, my bad (was coding on-the-fly). Check out GetExternalSymbol in the QuickRef to find what was missing.
Size:
Color:
Do you sleep:)
Size:
Color:
We (MS123 LLC) are Europe-based ;)
Size:
Color:
Optional parameter dataSetName ?
where does it go?
Size:
Color:
Nope.
GetExternalSymbol returns a
Bars object while to build the QQQQ SMA series you need a DataSeries. Was:
CODE:
Please log in to see this code.
Becomes:
CODE:
Please log in to see this code.
Size:
Color:
Sorry about that edit. I just wanted to point out to casual readers like myself that the first statement is incorrect, as Eugene was explaining. GetExternalSymbol returns a
Bars object, so it should be written as follows if that's what you intended:
CODE:
Please log in to see this code.
Size:
Color: