Line price up center

Created at 19 Apr 2013, 20:43
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
Scott's avatar

Scott

Joined 18.01.2013

Line price up center
19 Apr 2013, 20:43


Hi Support could you help me with some coding 

I wanting to have a indicator to take the value of the 2nd upper band and takeawau the 2nd lower band of the fibonacci band indicator then divdes it by 2, and then use that number to set view from Bid line so its would be fixed and the price line would always be center

Eg.

1 minute  

2nd Upper Band 1.31476  -  2nd Lower Band  1.31276  = 20 /2 =10  (Bid = 1.31283) ( Bid + 10 = 1.31383, Bid - 10 = 1.31183 )

5 minute

2nd Upper Band 1.31813  -  2nd Lower Band  1.31379 = 43.4  /2 = 21.7 (Bid + 21.7 = 1.3150, Bid - 21.7 = 1.31066 ) 


@Scott
Replies

Scott
19 Apr 2013, 20:55

RE: the fuction

So the main fuction is to set a distance based of the 2 nd upper and lower fibonacci lines, the other function is for none of the SMA or Fibonacci line to show unless they are equal to or within the range of the pip view set.

If this is not clear please ask me further questions, thanks Scott


@Scott