Projection Oscillator from ThinkOrSwim
Forums › ProRealTime English forum › ProBuilder support › Projection Oscillator from ThinkOrSwim
- This topic has 6 replies, 3 voices, and was last updated 3 years ago by mihalj.
Tagged: oscillator, Projection, Projection Oscillator
-
-
02/01/2021 at 2:29 AM #160008
Hi,
please can anyone create code of the Projection Oscillator as it is done in thinkorswim? I do not have original code, but I am providing picture of the indicator with some values on it (please see attachment).
Thanks and best regards,
02/01/2021 at 9:40 AM #160019I think that this one should be the same: Projection Oscillator
02/01/2021 at 9:04 PM #16008402/01/2021 at 11:53 PM #160087if you compare CCJ daily in proreal up to yesterday you are going to see difference (it is actually pretty large one) in way of plotting.
Most likely the data feed that you are using in ThinkOrSwim is not identical to the data feed to your PRT platform and if you don’t put the same thing in then you can’t expect to get the same thing out. If the indicator calculations are the same calculations then this can be the only reason for a difference in output.
P.S. French is not needed as you are in the English language forums and the rules say….
- Only post in the language of the forum that you are posting in. For example English only in the English speaking forums and French only in the French speaking forums.
02/02/2021 at 2:09 AM #160091Hello again,
thinkorswim is not really mine but of my friend. I did check all daily data between two platforms and they are identical, which means something in calculation slightly differ. I can see some similarities between oscillators but they are not matching for sure (please see pictures in the attachment of both platform indicators).
I will try to figure out mathematical model of the calculation and will post it here if I find it.
Thanks again and best regards,
02/02/2021 at 9:18 AM #160098The real formula used by TOS would be great. In the meantime, you can try this version I just coded by gathering ressource on the web:
123456789101112131415161718192021222324252627period = 14pboPeriod = 14//user defined, default is 14price=customclosemHigh = linearregression[period](high)[1] //returns the slope (m) of Linear RegresionmLow = linearRegression[period](low)[1]count = 0pbw = 0pu = 0pl=0for i = 0 to pboPeriod + 1 do //move back 1 periodhhigh = high[i]llow = low[i]vHigh = hhigh + (mHigh * (count))vLow = llow + (mLow * (count))if (vHigh > pu) thenpu = vHighendifif (vLow > pl) thenpl = vLowendifcount=count+1nextPBO = 100 * (price - pl) / (pu - pl)return pbo02/03/2021 at 2:23 AM #160212Thanks Nicolas,
Actually after spending a bit more time with ProReal Projection Oscillator and analyzing it, I find it is quite better for entries than thinkorswim counterpart. Thanks a lot, I think ProReal PO(14) is keeper.
Best regards,
-
AuthorPosts
Find exclusive trading pro-tools on