Thank You very much for the reply.
The formula works OK, but it always calculates the last "close" price.
My study is based on Open prices and I would love to have
Parabolic SAR based on open prices, so once it is established on the screen
(I use line charts set to Open price source) it doesn't change
(unlike close price that follow the very LAST price of the market).
Is there a formula that calculate oscillators based on Open rather then
Close price source???
What should I add/change to this formula to have it calculated only on OPEN
price source:
var study = new ParabolicStudy(0.02, 0.02, 0.2);
function preMain() {
setPriceStudy(true);
setPlotType(PLOTTYPE_SQUAREWAVE,0);
setDefaultBarThickness(6, 0);
setStudyTitle("PKTEMP");
}
function main() {
sar0=study.getValue(ParabolicStudy.STOP);
return sar0;
}
no i wanted to know how to edit the stoch rsi to 8 5 (5) 3
----- Original Message -----
From: <[email protected]>
To: <[email protected]>
Sent: Monday, August 11, 2003 1:37 PM
Subject: Reply to post 'SAR set to open prices only'
Do you know if "" setComputeOnClose(); "" can be modified to
"" setComputeOnOpen(); "" ??? Or is there any other function
that will calculate the on screen line/tick charts to "what you
see is what you get"??
I don't know much about the Java scripts,
How would you add this line
if(getBarState==BARSTATE_NEWBAR){
to the formula below:
var study = new ParabolicStudy(0.02, 0.02, 0.2);
function preMain() {
setPriceStudy(true);
setPlotType(PLOTTYPE_SQUAREWAVE)
setDefaultBarThickness(4);
}
function main(){
return study.getValue(ParabolicStudy.STOP);
}
All I want is to caclulate the Parabolic SAR only
on the very first Open price source of the time interval.
REALLY appreciate your help,
Regards,
Peter
var study = new ParabolicStudy(0.02, 0.02, 0.2);
function preMain() {
setPriceStudy(true);
setPlotType(PLOTTYPE_SQUAREWAVE)
setDefaultBarThickness(4);
}
function main(){
if(getBarState==BARSTATE_NEWBAR)
return study.getValue(ParabolicStudy.STOP);
}
Will this formula calculate SAR based on only first
tick of the time interval and don't change until
the next one? I was looking for "one at the time
interval picture, so it doesn't change after being
drawn on the screen.
I REALLY appreciate your work,
Will test it and let you know.
My idea is to design trading based on
"what you see is what you get", that
takes the emotional part of the trading.
Is there any other way to contact you
directly???
Comment