RE: Reply to post 'SAR set to open prices only'
David,
This formula changes the outcome, once establish
within given time interval. For exapmple, if you get
the buy signal on One Hour chart, it could go back
and change to sell again within one hour.
var study = new ParabolicStudy(0.02, 0.02, 0.2);
function preMain() {
setPriceStudy(true);
setPlotType(PLOTTYPE_SQUAREWAVE);
setDefaultBarThickness(4);
setDefaultBarFgColor(Color.red, 0);
}
function main(){
if(getBarState==BARSTATE_NEWBAR);
return study.getValue(ParabolicStudy.STOP);
}
Before I was using:
setComputeOnClose(); instead of if(getBarState==BARSTATE_NEWBAR)
and computeonclose didn't change, except it was drawn
on the previous bar's close price. I am just looking for the calculations
based on the screen - Line/Tick charts set to "Open" so the oscillators
don't change (sort of what you see is what you get until next
time interval's open). It looks like it still follows the very last tick,
not the first tick of the interval.
Would appreciate if you can help me.
Peter
[email protected]
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Sunday, August 17, 2003 2:07 PM
To: [email protected]
Subject: Reply to post 'SAR set to open prices only'
Hello peterkl,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
David,
This formula changes the outcome, once establish
within given time interval. For exapmple, if you get
the buy signal on One Hour chart, it could go back
and change to sell again within one hour.
var study = new ParabolicStudy(0.02, 0.02, 0.2);
function preMain() {
setPriceStudy(true);
setPlotType(PLOTTYPE_SQUAREWAVE);
setDefaultBarThickness(4);
setDefaultBarFgColor(Color.red, 0);
}
function main(){
if(getBarState==BARSTATE_NEWBAR);
return study.getValue(ParabolicStudy.STOP);
}
Before I was using:
setComputeOnClose(); instead of if(getBarState==BARSTATE_NEWBAR)
and computeonclose didn't change, except it was drawn
on the previous bar's close price. I am just looking for the calculations
based on the screen - Line/Tick charts set to "Open" so the oscillators
don't change (sort of what you see is what you get until next
time interval's open). It looks like it still follows the very last tick,
not the first tick of the interval.
Would appreciate if you can help me.
Peter
[email protected]
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Sunday, August 17, 2003 2:07 PM
To: [email protected]
Subject: Reply to post 'SAR set to open prices only'
Hello peterkl,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comment