XPoints indicator

Here you can post and download custom indicators written in JavaScript.

Moderator: admin

XPoints indicator

Postby Alexander.Gettinger » Sat Mar 30, 2019 4:44 pm

Formulas:
Upper[i] - maximum price at range from (i-Period+1) to i,
Lower[i] - minimum price at range from (i-Period+1) to i,
Middle[i] = (Upper[i]+Lower[i])/2,
if Low[i-1]<=Lower[i-1] and High[i-1]<Upper[i-1] and Low[i]>=Low[i-1]+xslope and [(Open[i-1]+Close[i-1])/2<=Middle[i-1] or (Open[i]+Close[i])/2>=(Open[i-1]+Close[i-1])/2+xslope or (High[i]+Low[i])/2>=(High[i-1]+Low[i-1])/2+xslope then UpArrow,
if High[i-1]>=Upper[i-1] and Low[i-1]>Lower[i-1] and High[i]<=High[i-1]-xslope and [(Open[i-1]+Close[i-1])/2>=Middle[i-1] or (Open[i]+Close[i])/2<=(Open[i-1]+Close[i-1])/2-xslope or (High[i]+Low[i])/2<=(High[i-1]+Low[i-1])/2-xslope then DnArrow.

XPoints.PNG


Download:
XPoints_JS.jsl
(5.15 KiB) Downloaded 591 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Return to JavaScript Indicators and Strategies

Who is online

Users browsing this forum: No registered users and 10 guests