Pivot Points (Daily)

Category: Indicators By: Doctrading Created: March 25, 2016, 6:04 PM
March 25, 2016, 6:04 PM
Indicators
14 Comments

Hi all,

This is the code for classical Pivot Points (daily).

It is very simple, and can be very useful to backtest some strategies.
By the way, if you know an efficient one, tell me and I can backtest and improve it.
I haven’t found it yet.

And for the Monday, pivot points are based on the calculation of SUNDAY, so it is wrong.
I will soon fix this issue

Greetings,
Marc

Ht = DHigh(1)
Bs = DLow(1)
C = DClose(1)


Pivot = (Ht + Bs + C) / 3
Res4 = Pivot + ((Ht - Bs)*3)
Res3 = Pivot + ((Ht - Bs)*2)
Res2 = Pivot + Ht - Bs
Res1 = (2 * Pivot) - Bs
Sup1 = (2 * Pivot) - Ht
Sup2 = Pivot - (Ht - Bs)
Sup3 = Pivot - ((Ht - Bs)*2)
Sup4 = Pivot - ((Ht - Bs)*3)


return Pivot as "Point Pivot", Res1 as "R1", Res2 as "R2", Res3 as "R3", Res4 as "R4", Sup1 as "S1", Sup2 as "S2", Sup3 as "S3", Sup4 as "S4"

NB :

I can’t set “H =”… or “R2 = “… so I did write “Ht” and “Res2”.

Download
Filename: Pivots-points-Daily.itf
Downloads: 247
Doctrading Master
Hello, I'm Marc. Nice to meet you.
Author’s Profile

Comments

Logo Logo
Loading...