I've reviewed the help and online files and still can't seem figure something out.
I wrote a study successfully - works like it should. But, when i put in to part for the stops and the target i keep getting a syntax error.
Once the study triggers I want to put a 2 point stop in AND then close my short position out 9 bars later.
Would someone please help me word this in the formula wizard?
I would assume that i would have to have this -
{{EFSWizard_Actions
//{{EFSWizard_Action_1
function onAction1() {
Strategy.doShort("", Strategy.CLOSE, Strategy.THISBAR, Strategy.DEFAULT, 0);
Strategy.setStop(2);
Strategy.doCover("", Strategy.CLOSE, Strategy.THISBAR, Strategy.DEFAULT, 0);
vLastAlert = 1;
}
It's what variables to put in these sections that I'm not sure of
Thanks
Jphillips
I wrote a study successfully - works like it should. But, when i put in to part for the stops and the target i keep getting a syntax error.
Once the study triggers I want to put a 2 point stop in AND then close my short position out 9 bars later.
Would someone please help me word this in the formula wizard?
I would assume that i would have to have this -
{{EFSWizard_Actions
//{{EFSWizard_Action_1
function onAction1() {
Strategy.doShort("", Strategy.CLOSE, Strategy.THISBAR, Strategy.DEFAULT, 0);
Strategy.setStop(2);
Strategy.doCover("", Strategy.CLOSE, Strategy.THISBAR, Strategy.DEFAULT, 0);
vLastAlert = 1;
}
It's what variables to put in these sections that I'm not sure of
Thanks
Jphillips
Comment