dear all coders , i want one help
i came to know about Gann sq9 calculator.. can any one bring this into indicator to mq4 please??
let me explain because i don't know coding knowledge.. learning now how to modify line styles and colors but unable to create... is my lacking
first consider the current price as x then find the value of square root for x.
consider this square root value as y and this y may come like 00.00 with 2 decimal.. but need is int 00........... not round off.. because if the number comes 54.56 means it will take 55 and error will occur.. so need is 54 only
then take this y and find the square for it by y * y = A (54 * 54 = 2916 ) this is center of value and we need to get further values
by adding 0.125 , 0.25, 0.375, 0.5, 0.625, 0.75, 0.875, 1.0 , 1.125 , 1.25, 1.375, 1.5, 1.625, 1.75, 1.875, 2.0 to value we got as A and multiple with same for getting new value and need short lines with caption mention in the pic... or just price label on the line...and the line always placing with current price line.... no back step lines and right side ray also....
FOR 45degree -- (A+0.125 ) * (A+0.125 ) .............................. line with price and 45^ degree symbol as label
FOR 90 degree -- (A+0.25 ) * (A+0.25 )
FOR 135 degree -- (A+0.375 ) * (A+0.375 )
FOR 180 degree --(A+0.5 ) * (A+0.5 )
FOR 225 degree -- (A+0.625 ) * (A+0.625 )
FOR 270 degree -- (A+0.75 ) * (A+0.75 )
FOR 315 degree -- (A+0.875 ) * (A+0.875 )
FOR 360 degree -- (A+1.0 ) * (A+1.0 )
one cycle is over and have to add like this for 2nd cycle also like
FOR next 45degree -- (A+1.125 ) * (A+1.125 ) .............................. line with price and 45^ degree symbol as label
FOR next 90 degree -- (A+1.25 ) * (A+1.25 )
FOR next 135 degree -- (A+1.375 ) * (A+1.375 )
FOR next 180 degree --(A+1.5 ) * (A+1.5 )
FOR next 225 degree -- (A+1.625 ) * (A+1.625 )
FOR next 270 degree -- (A+1.75 ) * (A+1.75 )
FOR next 315 degree -- (A+1.875 ) * (A+1.875 )
FOR next 360 degree -- (A+2.0 ) * (A+2.0 )
now 2nd cycle ends and have to add for 3rd cycle
FOR next 45degree -- (A+2.125 ) * (A+2.125 ) .............................. line with price and 45^ degree symbol as label
FOR next 90 degree -- (A+2.25 ) * (A+2.25 )
FOR next 135 degree -- (A+2.375 ) * (A+2.375 )
FOR next 180 degree --(A+2.5 ) * (A+2.5 )
FOR next 225 degree -- (A+2.625 ) * (A+2.625 )
FOR next 270 degree -- (A+2.75 ) * (A+2.75 )
FOR next 315 degree -- (A+2.875 ) * (A+2.875 )
FOR next 360 degree -- (A+3.0 ) * (A+3.0 )
now 3rd cycle end and 4th cycle too have to find and minimum 4 cycles needs
FOR next 45degree -- (A+3.125 ) * (A+3.125 ) .............................. line with price and 45^ degree symbol as label
FOR next 90 degree -- (A+3.25 ) * (A+3.25 )
FOR next 135 degree -- (A+3.375 ) * (A+3.375 )
FOR next 180 degree --(A+3.5 ) * (A+3.5 )
FOR next 225 degree -- (A+3.625 ) * (A+3.625 )
FOR next 270 degree -- (A+3.75 ) * (A+3.75 )
FOR next 315 degree -- (A+3.875 ) * (A+3.875 )
FOR next 360 degree -- (A+4.0 ) * (A+4.0 )
so for this calculation... need lines and the lines will get change value when the price moves to next square root value..
kindly any one coding person please help me with this method.. will be very much thankful.. and please provide me mq4 file too.. i want to keep this as the memory..
i came to know about Gann sq9 calculator.. can any one bring this into indicator to mq4 please??
let me explain because i don't know coding knowledge.. learning now how to modify line styles and colors but unable to create... is my lacking
first consider the current price as x then find the value of square root for x.
consider this square root value as y and this y may come like 00.00 with 2 decimal.. but need is int 00........... not round off.. because if the number comes 54.56 means it will take 55 and error will occur.. so need is 54 only
then take this y and find the square for it by y * y = A (54 * 54 = 2916 ) this is center of value and we need to get further values
by adding 0.125 , 0.25, 0.375, 0.5, 0.625, 0.75, 0.875, 1.0 , 1.125 , 1.25, 1.375, 1.5, 1.625, 1.75, 1.875, 2.0 to value we got as A and multiple with same for getting new value and need short lines with caption mention in the pic... or just price label on the line...and the line always placing with current price line.... no back step lines and right side ray also....
FOR 45degree -- (A+0.125 ) * (A+0.125 ) .............................. line with price and 45^ degree symbol as label
FOR 90 degree -- (A+0.25 ) * (A+0.25 )
FOR 135 degree -- (A+0.375 ) * (A+0.375 )
FOR 180 degree --(A+0.5 ) * (A+0.5 )
FOR 225 degree -- (A+0.625 ) * (A+0.625 )
FOR 270 degree -- (A+0.75 ) * (A+0.75 )
FOR 315 degree -- (A+0.875 ) * (A+0.875 )
FOR 360 degree -- (A+1.0 ) * (A+1.0 )
one cycle is over and have to add like this for 2nd cycle also like
FOR next 45degree -- (A+1.125 ) * (A+1.125 ) .............................. line with price and 45^ degree symbol as label
FOR next 90 degree -- (A+1.25 ) * (A+1.25 )
FOR next 135 degree -- (A+1.375 ) * (A+1.375 )
FOR next 180 degree --(A+1.5 ) * (A+1.5 )
FOR next 225 degree -- (A+1.625 ) * (A+1.625 )
FOR next 270 degree -- (A+1.75 ) * (A+1.75 )
FOR next 315 degree -- (A+1.875 ) * (A+1.875 )
FOR next 360 degree -- (A+2.0 ) * (A+2.0 )
now 2nd cycle ends and have to add for 3rd cycle
FOR next 45degree -- (A+2.125 ) * (A+2.125 ) .............................. line with price and 45^ degree symbol as label
FOR next 90 degree -- (A+2.25 ) * (A+2.25 )
FOR next 135 degree -- (A+2.375 ) * (A+2.375 )
FOR next 180 degree --(A+2.5 ) * (A+2.5 )
FOR next 225 degree -- (A+2.625 ) * (A+2.625 )
FOR next 270 degree -- (A+2.75 ) * (A+2.75 )
FOR next 315 degree -- (A+2.875 ) * (A+2.875 )
FOR next 360 degree -- (A+3.0 ) * (A+3.0 )
now 3rd cycle end and 4th cycle too have to find and minimum 4 cycles needs
FOR next 45degree -- (A+3.125 ) * (A+3.125 ) .............................. line with price and 45^ degree symbol as label
FOR next 90 degree -- (A+3.25 ) * (A+3.25 )
FOR next 135 degree -- (A+3.375 ) * (A+3.375 )
FOR next 180 degree --(A+3.5 ) * (A+3.5 )
FOR next 225 degree -- (A+3.625 ) * (A+3.625 )
FOR next 270 degree -- (A+3.75 ) * (A+3.75 )
FOR next 315 degree -- (A+3.875 ) * (A+3.875 )
FOR next 360 degree -- (A+4.0 ) * (A+4.0 )
so for this calculation... need lines and the lines will get change value when the price moves to next square root value..
kindly any one coding person please help me with this method.. will be very much thankful.. and please provide me mq4 file too.. i want to keep this as the memory..
Success is a Journey Not a Destination....... kind regards ramzam