In this simple exercise, the part I'm having trouble with is in trying to reference an external symbol's EMA to see whether the external symbol's price is higher or lower than its EMA. The language or syntax is incorrect however in line 34. Thanks for any help in straightening me out here.
CODE:
Please log in to see this code.
Size:
Color:
CODE:
Please log in to see this code.
Size:
Color:
Thanks. No error signals on run now.
However, there must be some other error in the logic regarding this or PriceUnderEMA / PriceOverEMA. There should be some trades, and there are none. Can't figure it out after several hours. Taking a break.
Size:
Color:
Remove "else" in
CODE:
Please log in to see this code.
Size:
Color:
Thanks, works now.
But it turned out to be a pretty bad modification. Wanted to reduce the drawdowns and from the charts, it seemed like this should help, but this dumbed the script down incredibly, and still had bad drawdowns.
Gotta keep trying.
Size:
Color: