quintana roo, méxico
Posts: 84 since Mar 2013
Thanks Given: 222
Thanks Received: 40
|
hello everyone,
because nt is free and because it has superior order management capabilities to other platforms i have been trying to code some simple ideas as automated strategies.
however, i have run into some unsolvable issues with variables, functions, properties and nt limitations. therefore i could use some help in coding what must be a very simple strategy for people who know what they are doing.
i would greatly appreciate if i can get help in coding a simple strategy that made trades following bollinger's bands:
if price (0) >= bollinger's upper band
enter long
if price (0) <= upper band
exit all long positions
if price (0) <= lower band
enter short
if price (0) <= lower band
exit all short positions
what i am having the most issues with is being able to have nt compare price (0) to the upper / lower bands (error message says operand can't be applied). also, i haven't been able to figure out how to define the equations used for the upper / middle / lower bands (which require elementary arithmetic operations) so that nt can then use them (as doubles? as data series? other?).
thanks a lot, regards.
|