Ferrera Gann Angles Formula

download Ferrera Gann Angles Formula

of 29

Transcript of Ferrera Gann Angles Formula

  • 8/13/2019 Ferrera Gann Angles Formula

    1/29

    Ferrera Gann Angles Formula#property copyright "Copyright 2009, Aleksandr Smolyak"#property link "[email protected]"#property indicator_chart_windowextern string FERRERA.GANN.ANGLES.TIME = "v01";extern string _ = "Gann Angle";

    extern double AngleNum=1.0;//extern datetime StartTime=D'2012.07.24 00:00';extern double StartPrice=1.2044;extern bool Direction_Up=true;extern bool Angle=true;extern bool Angle_Ray=true;extern bool Box=true;extern bool Box_Ray=false;extern bool Triangle=true;extern bool Triangle_Ray=false;extern bool by_time=false;//---------------Box----------------------------//

    extern color ColBox=C'0,55,0';extern int StyleBox=0;extern int WidthBox=1;//---------------Medium Box----------------------------//extern color ColBoxm=C'0,55,0';extern int StyleBoxm=2;extern int WidthBoxm=1;//---------------Triangle----------------------------//extern color ColTriangle=Maroon;extern int StyleTriangle=2;extern int WidthTriangle=1;//----------------------Cycle------------------------//extern bool Cycle=false;extern color ColCycle=C'80,0,0';extern int StyleCycle=2;extern int WidthCycle=1;//-----------------------------------------------double Price;double S;double Sprom;double EndPrice_MH;double PriceAngle;//-----------1/1---------------------------//extern bool Angle_1_1=true;extern color Col_1_1=Red;extern int Style_1_1=0;extern int Width_1_1=1;double EndPrice_1_1;//------------1/2---------------------------//extern bool Angle_1_2=true;extern color Col_1_2=DarkGray;

    Page 1

  • 8/13/2019 Ferrera Gann Angles Formula

    2/29

    Ferrera Gann Angles Formulaextern int Style_1_2=0;extern int Width_1_2=1;double EndPrice_1_2;//-------------2/1---------------------------//extern bool Angle_2_1=true;

    extern color Col_2_1=DarkGray;extern int Style_2_1=0;extern int Width_2_1=1;double EndPrice_2_1;//-------------1/3----------------------------//extern bool Angle_1_3=false;extern color Col_1_3=LimeGreen;extern int Style_1_3=0;extern int Width_1_3=1;double EndPrice_1_3;//-------------3/1----------------------------//extern bool Angle_3_1=false;

    extern color Col_3_1=LimeGreen;extern int Style_3_1=0;extern int Width_3_1=1;double EndPrice_3_1;//---------------1/4---------------------------//extern bool Angle_1_4=false;extern color Col_1_4=Magenta;extern int Style_1_4=0;extern int Width_1_4=1;double EndPrice_1_4;//-------------4/1----------------------------//extern bool Angle_4_1=false;extern color Col_4_1=Magenta;extern int Style_4_1=0;extern int Width_4_1=1;double EndPrice_4_1;//---------------1/5---------------------------//extern bool Angle_1_5=false;extern color Col_1_5=DarkGreen;extern int Style_1_5=0;extern int Width_1_5=1;double EndPrice_1_5;//-------------5/1----------------------------//extern bool Angle_5_1=false;extern color Col_5_1=DarkGreen;extern int Style_5_1=0;extern int Width_5_1=1;double EndPrice_5_1;//---------------1/6---------------------------//extern bool Angle_1_6=false;extern color Col_1_6=SaddleBrown;

    Page 2

  • 8/13/2019 Ferrera Gann Angles Formula

    3/29

    Ferrera Gann Angles Formulaextern int Style_1_6=0;extern int Width_1_6=1;double EndPrice_1_6;//-------------6/1----------------------------//extern bool Angle_6_1=false;

    extern color Col_6_1=SaddleBrown;extern int Style_6_1=0;extern int Width_6_1=1;double EndPrice_6_1;//---------------1/7---------------------------//extern bool Angle_1_7=false;extern color Col_1_7=Brown;extern int Style_1_7=0;extern int Width_1_7=1;double EndPrice_1_7;//-------------7/1----------------------------//extern bool Angle_7_1=false;

    extern color Col_7_1=Brown;extern int Style_7_1=0;extern int Width_7_1=1;double EndPrice_7_1;//---------------1/8---------------------------//extern bool Angle_1_8=false;extern color Col_1_8=Sienna;extern int Style_1_8=0;extern int Width_1_8=1;double EndPrice_1_8;//-------------8/1----------------------------//extern bool Angle_8_1=false;extern color Col_8_1=Sienna;extern int Style_8_1=0;extern int Width_8_1=1;double EndPrice_8_1;//---------------1/9---------------------------//extern bool Angle_1_9=false;extern color Col_1_9=Sienna;extern int Style_1_9=0;extern int Width_1_9=1;double EndPrice_1_9;//-------------9/1----------------------------//extern bool Angle_9_1=false;extern color Col_9_1=Sienna;extern int Style_9_1=0;extern int Width_9_1=1;double EndPrice_9_1;//---------------1/10---------------------------//extern bool Angle_1_10=false;extern color Col_1_10=Sienna;

    Page 3

  • 8/13/2019 Ferrera Gann Angles Formula

    4/29

  • 8/13/2019 Ferrera Gann Angles Formula

    5/29

    Ferrera Gann Angles Formulaint init(){return(0);}int deinit(){ObjectDelete(AngleNum +"Angle_1_1");ObjectDelete(AngleNum +"Angle_1_2");ObjectDelete(AngleNum +"Angle_2_1");

    ObjectDelete(AngleNum +"Angle_1_3");ObjectDelete(AngleNum +"Angle_3_1");ObjectDelete(AngleNum +"Angle_1_4");ObjectDelete(AngleNum +"Angle_4_1");ObjectDelete(AngleNum +"Angle_1_5");ObjectDelete(AngleNum +"Angle_5_1");ObjectDelete(AngleNum +"Angle_1_6");ObjectDelete(AngleNum +"Angle_6_1");ObjectDelete(AngleNum +"Angle_1_7");ObjectDelete(AngleNum +"Angle_7_1");ObjectDelete(AngleNum +"Angle_1_8");ObjectDelete(AngleNum +"Angle_8_1");

    ObjectDelete(AngleNum +"Angle_1_9");ObjectDelete(AngleNum +"Angle_9_1");ObjectDelete(AngleNum +"Angle_1_10");ObjectDelete(AngleNum +"Angle_10_1");ObjectDelete(AngleNum +"Angle_1_11");ObjectDelete(AngleNum +"Angle_11_1");ObjectDelete(AngleNum +"Angle_1_12");ObjectDelete(AngleNum +"Angle_12_1");ObjectDelete(AngleNum +"Angle_1_13");ObjectDelete(AngleNum +"Angle_13_1");//----------------------------------------------//ObjectDelete(AngleNum +"Time");//---------------------------------------------//ObjectDelete(AngleNum +"Box0");ObjectDelete(AngleNum +"Box1/8");ObjectDelete(AngleNum +"Box2/8");ObjectDelete(AngleNum +"Box3/8");ObjectDelete(AngleNum +"Box4/8");ObjectDelete(AngleNum +"Box5/8");ObjectDelete(AngleNum +"Box6/8");ObjectDelete(AngleNum +"Box7/8");ObjectDelete(AngleNum +"Box8/8");ObjectDelete(AngleNum +"BoxH1/8");ObjectDelete(AngleNum +"BoxH2/8");ObjectDelete(AngleNum +"BoxH3/8");ObjectDelete(AngleNum +"BoxH4/8");ObjectDelete(AngleNum +"BoxH5/8");ObjectDelete(AngleNum +"BoxH6/8");ObjectDelete(AngleNum +"BoxH7/8");ObjectDelete(AngleNum +"BoxH8/8");ObjectDelete(AngleNum +"BoxH9/9");

    Page 5

  • 8/13/2019 Ferrera Gann Angles Formula

    6/29

  • 8/13/2019 Ferrera Gann Angles Formula

    7/29

    Ferrera Gann Angles Formula

    if(StringFind(Symbol(),"XAU",0) >= 0) { Price = 1; }

    if(StringFind(Symbol(),"JPY",0) >= 0) { Price = 100; } if(StringFind(Symbol(),"GBPJPY",0) >= 0) { Price = 10; } else if(StringFind(Symbol(),"XAU",0) == -1) if(StringFind(Symbol(),"JPY",0) == -1) if(StringFind(Symbol(),"GBPJPY",0) == -1)

    { Price =1000; }

    { S=MathRound (MathSqrt(StartPrice*Price));}//-----------------------------1/1----------------------------//if(Direction_Up==true)

    { Sprom=(MathSqrt(StartPrice*Price)+1);} else { Sprom=(MathSqrt(StartPrice*Price)-1);} {EndPrice_1_1=(Sprom*Sprom)/Price;}if(Direction_Up==true)

    {PriceAngle =EndPrice_1_1-StartPrice;} else {PriceAngle =StartPrice-EndPrice_1_1;} if(Angle==true)

    if(Angle_1_1==true) {

    datetime T2_1_1=StartTime+(S *86400);ObjectCreate(AngleNum

    +"Angle_1_1",OBJ_TREND,0,StartTime,StartPrice,T2_1_1,EndPrice_1_1); ObjectSet(AngleNum +"Angle_1_1", OBJPROP_COLOR, Col_1_1);

    ObjectSet(AngleNum +"Angle_1_1", OBJPROP_RAY, Angle_Ray);ObjectSet(AngleNum +"Angle_1_1", OBJPROP_STYLE, Style_1_1);

    ObjectSet(AngleNum +"Angle_1_1",OBJPROP_WIDTH,Width_1_1); ObjectSet(AngleNum +"Angle_1_1",OBJPROP_BACK,Draw.as.Background); } Comment(" :",(EndPrice_1_1-StartPrice)/(MathSqrt(StartPrice*Price)));//-----------------------------1/2----------------------------//

    Page 7

  • 8/13/2019 Ferrera Gann Angles Formula

    8/29

    Ferrera Gann Angles Formulaif(Direction_Up==true)//{ Sprom=(MathSqrt(StartPrice*Price)+0.5);}{Sprom=StartPrice+(PriceAngle/2);} else// { Sprom=(MathSqrt(StartPrice*Price)-0.5);}

    {Sprom=StartPrice-(PriceAngle/2);} {EndPrice_1_2=Sprom;}if(Angle==true)

    if(Angle_1_2==true){datetime T2_1_2=StartTime+(S *86400);ObjectCreate(AngleNum

    +"Angle_1_2",OBJ_TREND,0,StartTime,StartPrice,T2_1_2,EndPrice_1_2); ObjectSet(AngleNum +"Angle_1_2", OBJPROP_COLOR, Col_1_2);

    ObjectSet(AngleNum +"Angle_1_2", OBJPROP_RAY, Angle_Ray);ObjectSet(AngleNum +"Angle_1_2", OBJPROP_STYLE, Style_1_2);

    ObjectSet(AngleNum +"Angle_1_2",OBJPROP_WIDTH,Width_1_2);

    ObjectSet(AngleNum +"Angle_1_2",OBJPROP_BACK,Draw.as.Background); }//------------------------------2/1----------------------------//if(Direction_Up==true)

    //{ Sprom=(MathSqrt(StartPrice*Price)+2);}{Sprom=StartPrice+(PriceAngle*2);} else // { Sprom=(MathSqrt(StartPrice*Price)-2);} {Sprom=StartPrice-(PriceAngle*2);} {EndPrice_2_1=Sprom;}if(Angle==true)

    if(Angle_2_1==true){datetime T2_2_1=StartTime+(S *86400);ObjectCreate(AngleNum

    +"Angle_2_1",OBJ_TREND,0,StartTime,StartPrice,T2_2_1,EndPrice_2_1); ObjectSet(AngleNum +"Angle_2_1", OBJPROP_COLOR, Col_2_1);

    ObjectSet(AngleNum +"Angle_2_1", OBJPROP_RAY, Angle_Ray);ObjectSet(AngleNum +"Angle_2_1", OBJPROP_STYLE, Style_2_1);

    ObjectSet(AngleNum +"Angle_2_1",OBJPROP_WIDTH,Width_2_1); ObjectSet(AngleNum +"Angle_2_1",OBJPROP_BACK,Draw.as.Background); }//--------------------------------1/3----------------------------//if(Direction_Up==true)//{ Sprom=(MathSqrt(StartPrice*Price)+0.333333333);}{Sprom=StartPrice+(PriceAngle/3);} else //{ Sprom=(MathSqrt(StartPrice*Price)-0.333333333);} {Sprom=StartPrice-(PriceAngle/3);} {EndPrice_1_3=Sprom;}if(Angle==true)

    Page 8

  • 8/13/2019 Ferrera Gann Angles Formula

    9/29

    Ferrera Gann Angles Formulaif(Angle_1_3==true){datetime T2_1_3=StartTime+(S *86400);ObjectCreate(AngleNum

    +"Angle_1_3",OBJ_TREND,0,StartTime,StartPrice,T2_1_3,EndPrice_1_3);

    ObjectSet(AngleNum +"Angle_1_3", OBJPROP_COLOR, Col_1_3);ObjectSet(AngleNum +"Angle_1_3", OBJPROP_RAY, Angle_Ray);ObjectSet(AngleNum +"Angle_1_3", OBJPROP_STYLE, Style_1_3);

    ObjectSet(AngleNum +"Angle_1_3",OBJPROP_WIDTH,Width_1_3); ObjectSet(AngleNum +"Angle_1_3",OBJPROP_BACK,Draw.as.Background); }//---------------------------------3/1-----------------------------//if(Direction_Up==true)//{ Sprom=(MathSqrt(StartPrice*Price)+3);}{Sprom=StartPrice+(PriceAngle*3);} else // { Sprom=(MathSqrt(StartPrice*Price)-3);}

    {Sprom=StartPrice-(PriceAngle*3);}{EndPrice_3_1=Sprom;}

    if(Angle==true)if(Angle_3_1==true){datetime T2_3_1=StartTime+(S *86400);ObjectCreate(AngleNum

    +"Angle_3_1",OBJ_TREND,0,StartTime,StartPrice,T2_3_1,EndPrice_3_1); ObjectSet(AngleNum +"Angle_3_1", OBJPROP_COLOR, Col_3_1);

    ObjectSet(AngleNum +"Angle_3_1", OBJPROP_RAY, Angle_Ray);ObjectSet(AngleNum +"Angle_3_1", OBJPROP_STYLE, Style_3_1);

    ObjectSet(AngleNum +"Angle_3_1",OBJPROP_WIDTH,Width_3_1); ObjectSet(AngleNum +"Angle_4_1",OBJPROP_BACK,Draw.as.Background); }//---------------------------------1/4-------------------------------//if(Direction_Up==true)//{ Sprom=(MathSqrt(StartPrice*Price)+0.25);}{Sprom=StartPrice+(PriceAngle/4);} else // { Sprom=(MathSqrt(StartPrice*Price)-0.25);} {Sprom=StartPrice-(PriceAngle/4);} {EndPrice_1_4=Sprom;}if(Angle==true)

    if(Angle_1_4==true) {

    datetime T2_1_4=StartTime+(S *86400);ObjectCreate(AngleNum

    +"Angle_1_4",OBJ_TREND,0,StartTime,StartPrice,T2_1_4,EndPrice_1_4); ObjectSet(AngleNum +"Angle_1_4", OBJPROP_COLOR, Col_1_4);

    ObjectSet(AngleNum +"Angle_1_4", OBJPROP_RAY, Angle_Ray);ObjectSet(AngleNum +"Angle_1_4", OBJPROP_STYLE, Style_1_4);

    Page 9

  • 8/13/2019 Ferrera Gann Angles Formula

    10/29

    Ferrera Gann Angles Formula ObjectSet(AngleNum +"Angle_1_4",OBJPROP_WIDTH,Width_1_4); ObjectSet(AngleNum +"Angle_1_4",OBJPROP_BACK,Draw.as.Background); }//---------------------------------4/1-----------------------------//if(Direction_Up==true)

    //{ Sprom=(MathSqrt(StartPrice*Price)+4);}{Sprom=StartPrice+(PriceAngle*4);} else // { Sprom=(MathSqrt(StartPrice*Price)-4);} {Sprom=StartPrice-(PriceAngle*4);} {EndPrice_4_1=Sprom;}if(Angle==true)

    if(Angle_4_1==true){datetime T2_4_1=StartTime+(S *86400);ObjectCreate(AngleNum

    +"Angle_4_1",OBJ_TREND,0,StartTime,StartPrice,T2_4_1,EndPrice_4_1);

    ObjectSet(AngleNum +"Angle_4_1", OBJPROP_COLOR, Col_4_1);ObjectSet(AngleNum +"Angle_4_1", OBJPROP_RAY, Angle_Ray);ObjectSet(AngleNum +"Angle_4_1", OBJPROP_STYLE, Style_4_1);

    ObjectSet(AngleNum +"Angle_4_1",OBJPROP_WIDTH,Width_4_1); ObjectSet(AngleNum +"Angle_4_1",OBJPROP_BACK,Draw.as.Background); }//---------------------------------1/5-------------------------------//if(Direction_Up==true)//{ Sprom=(MathSqrt(StartPrice*Price)+0.2);}{Sprom=StartPrice+(PriceAngle/5);} else // { Sprom=(MathSqrt(StartPrice*Price)-0.2);} {Sprom=StartPrice-(PriceAngle/5);} {EndPrice_1_5=Sprom;}if(Angle==true)

    if(Angle_1_5==true){datetime T2_1_5=StartTime+(S *86400);ObjectCreate(AngleNum

    +"Angle_1_5",OBJ_TREND,0,StartTime,StartPrice,T2_1_5,EndPrice_1_5); ObjectSet(AngleNum +"Angle_1_5", OBJPROP_COLOR, Col_1_5);

    ObjectSet(AngleNum +"Angle_1_5", OBJPROP_RAY, Angle_Ray);ObjectSet(AngleNum +"Angle_1_5", OBJPROP_STYLE, Style_1_5);

    ObjectSet(AngleNum +"Angle_1_5",OBJPROP_WIDTH,Width_1_5); ObjectSet(AngleNum +"Angle_1_5",OBJPROP_BACK,Draw.as.Background); }//---------------------------------5/1-----------------------------//if(Direction_Up==true)//{ Sprom=(MathSqrt(StartPrice*Price)+5);}{Sprom=StartPrice+(PriceAngle*5);} else

    Page 10

  • 8/13/2019 Ferrera Gann Angles Formula

    11/29

    Ferrera Gann Angles Formula // { Sprom=(MathSqrt(StartPrice*Price)-5);} {Sprom=StartPrice-(PriceAngle*5);} {EndPrice_5_1=Sprom;}if(Angle==true)

    if(Angle_5_1==true)

    {datetime T2_5_1=StartTime+(S *86400);ObjectCreate(AngleNum

    +"Angle_5_1",OBJ_TREND,0,StartTime,StartPrice,T2_5_1,EndPrice_5_1); ObjectSet(AngleNum +"Angle_5_1", OBJPROP_COLOR, Col_5_1);

    ObjectSet(AngleNum +"Angle_5_1", OBJPROP_RAY, Angle_Ray);ObjectSet(AngleNum +"Angle_5_1", OBJPROP_STYLE, Style_5_1);

    ObjectSet(AngleNum +"Angle_5_1",OBJPROP_WIDTH,Width_5_1); ObjectSet(AngleNum +"Angle_5_1",OBJPROP_BACK,Draw.as.Background); }//---------------------------------1/6-------------------------------//if(Direction_Up==true)

    //{ Sprom=(MathSqrt(StartPrice*Price)+0.166666667);}{Sprom=StartPrice+(PriceAngle/6);} else // { Sprom=(MathSqrt(StartPrice*Price)-0.166666667);} {Sprom=StartPrice-(PriceAngle/6);}

    {EndPrice_1_6=Sprom;}if(Angle==true)

    if(Angle_1_6==true){datetime T2_1_6=StartTime+(S *86400);ObjectCreate(AngleNum

    +"Angle_1_6",OBJ_TREND,0,StartTime,StartPrice,T2_1_6,EndPrice_1_6); ObjectSet(AngleNum +"Angle_1_6", OBJPROP_COLOR, Col_1_6);

    ObjectSet(AngleNum +"Angle_1_6", OBJPROP_RAY, Angle_Ray);ObjectSet(AngleNum +"Angle_1_6", OBJPROP_STYLE, Style_1_6);

    ObjectSet(AngleNum +"Angle_1_6",OBJPROP_WIDTH,Width_1_6); ObjectSet(AngleNum +"Angle_1_6",OBJPROP_BACK,Draw.as.Background); }//---------------------------------6/1-----------------------------//if(Direction_Up==true)//{ Sprom=(MathSqrt(StartPrice*Price)+6);}{Sprom=StartPrice+(PriceAngle*6);} else // { Sprom=(MathSqrt(StartPrice*Price)-6);} {Sprom=StartPrice-(PriceAngle*6);} {EndPrice_6_1=Sprom;}if(Angle==true)

    if(Angle_6_1==true){datetime T2_6_1=StartTime+(S *86400);ObjectCreate(AngleNum

    Page 11

  • 8/13/2019 Ferrera Gann Angles Formula

    12/29

    Ferrera Gann Angles Formula+"Angle_6_1",OBJ_TREND,0,StartTime,StartPrice,T2_6_1,EndPrice_6_1); ObjectSet(AngleNum +"Angle_6_1", OBJPROP_COLOR, Col_6_1);

    ObjectSet(AngleNum +"Angle_6_1", OBJPROP_RAY, Angle_Ray);ObjectSet(AngleNum +"Angle_6_1", OBJPROP_STYLE, Style_6_1);

    ObjectSet(AngleNum +"Angle_6_1",OBJPROP_WIDTH,Width_6_1);

    ObjectSet(AngleNum +"Angle_6_1",OBJPROP_BACK,Draw.as.Background); }//---------------------------------1/7-------------------------------//if(Direction_Up==true)//{ Sprom=(MathSqrt(StartPrice*Price)+0.142857143);}{Sprom=StartPrice+(PriceAngle/7);} else // { Sprom=(MathSqrt(StartPrice*Price)-0.142857143);} {Sprom=StartPrice-(PriceAngle/7);} {EndPrice_1_7=Sprom;}if(Angle==true)

    if(Angle_1_7==true)

    {datetime T2_1_7=StartTime+(S *86400);ObjectCreate(AngleNum

    +"Angle_1_7",OBJ_TREND,0,StartTime,StartPrice,T2_1_7,EndPrice_1_7); ObjectSet(AngleNum +"Angle_1_7", OBJPROP_COLOR, Col_1_7);

    ObjectSet(AngleNum +"Angle_1_7", OBJPROP_RAY, Angle_Ray);ObjectSet(AngleNum +"Angle_1_7", OBJPROP_STYLE, Style_1_7);

    ObjectSet(AngleNum +"Angle_1_7",OBJPROP_WIDTH,Width_1_7); ObjectSet(AngleNum +"Angle_1_7",OBJPROP_BACK,Draw.as.Background); }//---------------------------------7/1-----------------------------//if(Direction_Up==true)//{ Sprom=(MathSqrt(StartPrice*Price)+7);}{Sprom=StartPrice+(PriceAngle*7);} else // { Sprom=(MathSqrt(StartPrice*Price)-7);} {Sprom=StartPrice-(PriceAngle*7);} {EndPrice_7_1=Sprom;}if(Angle==true)

    if(Angle_7_1==true){datetime T2_7_1=StartTime+(S *86400);ObjectCreate(AngleNum

    +"Angle_7_1",OBJ_TREND,0,StartTime,StartPrice,T2_7_1,EndPrice_7_1); ObjectSet(AngleNum +"Angle_7_1", OBJPROP_COLOR, Col_7_1);

    ObjectSet(AngleNum +"Angle_7_1", OBJPROP_RAY, Angle_Ray);ObjectSet(AngleNum +"Angle_7_1", OBJPROP_STYLE, Style_7_1);

    ObjectSet(AngleNum +"Angle_7_1",OBJPROP_WIDTH,Width_7_1); ObjectSet(AngleNum +"Angle_7_1",OBJPROP_BACK,Draw.as.Background); }//---------------------------------1/8-------------------------------//

    Page 12

  • 8/13/2019 Ferrera Gann Angles Formula

    13/29

    Ferrera Gann Angles Formulaif(Direction_Up==true)//{ Sprom=(MathSqrt(StartPrice*Price)+0.125);}{Sprom=StartPrice+(PriceAngle/8);} else // { Sprom=(MathSqrt(StartPrice*Price)-0.125);}

    {Sprom=StartPrice-(PriceAngle/8);}{EndPrice_1_8=Sprom;}

    if(Angle==true)if(Angle_1_8==true){datetime T2_1_8=StartTime+(S *86400);ObjectCreate(AngleNum

    +"Angle_1_8",OBJ_TREND,0,StartTime,StartPrice,T2_1_8,EndPrice_1_8); ObjectSet(AngleNum +"Angle_1_8", OBJPROP_COLOR, Col_1_8);

    ObjectSet(AngleNum +"Angle_1_8", OBJPROP_RAY, Angle_Ray);ObjectSet(AngleNum +"Angle_1_8", OBJPROP_STYLE, Style_1_8);

    ObjectSet(AngleNum +"Angle_1_8",OBJPROP_WIDTH,Width_1_8);

    ObjectSet(AngleNum +"Angle_1_8",OBJPROP_BACK,Draw.as.Background); }//---------------------------------8/1-----------------------------//if(Direction_Up==true)//{ Sprom=(MathSqrt(StartPrice*Price)+8);}{Sprom=StartPrice+(PriceAngle*8);} else // { Sprom=(MathSqrt(StartPrice*Price)-8);} {Sprom=StartPrice-(PriceAngle*8);} {EndPrice_8_1=Sprom;}if(Angle==true)

    if(Angle_8_1==true){datetime T2_8_1=StartTime+(S *86400);ObjectCreate(AngleNum

    +"Angle_8_1",OBJ_TREND,0,StartTime,StartPrice,T2_8_1,EndPrice_8_1); ObjectSet(AngleNum +"Angle_8_1", OBJPROP_COLOR, Col_8_1);

    ObjectSet(AngleNum +"Angle_8_1", OBJPROP_RAY, Angle_Ray);ObjectSet(AngleNum +"Angle_8_1", OBJPROP_STYLE, Style_8_1);

    ObjectSet(AngleNum +"Angle_8_1",OBJPROP_WIDTH,Width_8_1); ObjectSet(AngleNum +"Angle_8_1",OBJPROP_BACK,Draw.as.Background); }//---------------------------------1/9-------------------------------//if(Direction_Up==true)//{ Sprom=(MathSqrt(StartPrice*Price)+0.111111111);}{Sprom=StartPrice+(PriceAngle/9);} else // { Sprom=(MathSqrt(StartPrice*Price)-0.111111111);} {Sprom=StartPrice-(PriceAngle/9);} {EndPrice_1_9=Sprom;}if(Angle==true)

    Page 13

  • 8/13/2019 Ferrera Gann Angles Formula

    14/29

    Ferrera Gann Angles Formulaif(Angle_1_9==true){datetime T2_1_9=StartTime+(S *86400);ObjectCreate(AngleNum

    +"Angle_1_9",OBJ_TREND,0,StartTime,StartPrice,T2_1_9,EndPrice_1_9);

    ObjectSet(AngleNum +"Angle_1_9", OBJPROP_COLOR, Col_1_9);ObjectSet(AngleNum +"Angle_1_9", OBJPROP_RAY, Angle_Ray);ObjectSet(AngleNum +"Angle_1_9", OBJPROP_STYLE, Style_1_9);

    ObjectSet(AngleNum +"Angle_1_9",OBJPROP_WIDTH,Width_1_9); ObjectSet(AngleNum +"Angle_1_9",OBJPROP_BACK,Draw.as.Background); }//---------------------------------9/1-----------------------------//if(Direction_Up==true)//{ Sprom=(MathSqrt(StartPrice*Price)+9);}{Sprom=StartPrice+(PriceAngle*9);} else //{ Sprom=(MathSqrt(StartPrice*Price)-9);}

    {Sprom=StartPrice-(PriceAngle*9);}{EndPrice_9_1=Sprom;}

    if(Angle==true)if(Angle_9_1==true){datetime T2_9_1=StartTime+(S *86400);ObjectCreate(AngleNum

    +"Angle_9_1",OBJ_TREND,0,StartTime,StartPrice,T2_9_1,EndPrice_9_1); ObjectSet(AngleNum +"Angle_9_1", OBJPROP_COLOR, Col_9_1);

    ObjectSet(AngleNum +"Angle_9_1", OBJPROP_RAY, Angle_Ray);ObjectSet(AngleNum +"Angle_9_1", OBJPROP_STYLE, Style_9_1);

    ObjectSet(AngleNum +"Angle_9_1",OBJPROP_WIDTH,Width_9_1); ObjectSet(AngleNum +"Angle_9_1",OBJPROP_BACK,Draw.as.Background); }//---------------------------------1/10-------------------------------//

    if(Direction_Up==true){ Sprom=(MathSqrt(StartPrice*Price)+0.1);} else { Sprom=(MathSqrt(StartPrice*Price)-0.1);} {EndPrice_1_10=(Sprom*Sprom)/Price;}if(Angle==true)

    if(Angle_1_10==true){datetime T2_1_10=StartTime+(S *86400);ObjectCreate(AngleNum

    +"Angle_1_10",OBJ_TREND,0,StartTime,StartPrice,T2_1_10,EndPrice_1_10); ObjectSet(AngleNum +"Angle_1_10", OBJPROP_COLOR, Col_1_10);

    ObjectSet(AngleNum +"Angle_1_10", OBJPROP_RAY, Angle_Ray);ObjectSet(AngleNum +"Angle_1_10", OBJPROP_STYLE, Style_1_10);

    ObjectSet(AngleNum +"Angle_1_10",OBJPROP_WIDTH,Width_1_10); ObjectSet(AngleNum +"Angle_1_10",OBJPROP_BACK,Draw.as.Background);

    Page 14

  • 8/13/2019 Ferrera Gann Angles Formula

    15/29

  • 8/13/2019 Ferrera Gann Angles Formula

    16/29

    Ferrera Gann Angles Formula+"Angle_11_1",OBJ_TREND,0,StartTime,StartPrice,T2_11_1,EndPrice_11_1); ObjectSet(AngleNum +"Angle_11_1", OBJPROP_COLOR, Col_11_1);

    ObjectSet(AngleNum +"Angle_11_1", OBJPROP_RAY, Angle_Ray);ObjectSet(AngleNum +"Angle_11_1", OBJPROP_STYLE, Style_11_1);

    ObjectSet(AngleNum +"Angle_11_1",OBJPROP_WIDTH,Width_11_1);

    ObjectSet(AngleNum +"Angle_11_1",OBJPROP_BACK,Draw.as.Background); }//---------------------------------1/12-------------------------------//if(Direction_Up==true){ Sprom=(MathSqrt(StartPrice*Price)+0.083333333);} else { Sprom=(MathSqrt(StartPrice*Price)-0.083333333);} {EndPrice_1_12=(Sprom*Sprom)/Price;}if(Angle==true)

    if(Angle_1_12==true){datetime T2_1_12=StartTime+(S *86400);

    ObjectCreate(AngleNum+"Angle_1_12",OBJ_TREND,0,StartTime,StartPrice,T2_1_12,EndPrice_1_12); ObjectSet(AngleNum +"Angle_1_12", OBJPROP_COLOR, Col_1_12);

    ObjectSet(AngleNum +"Angle_1_12", OBJPROP_RAY, Angle_Ray);ObjectSet(AngleNum +"Angle_1_12", OBJPROP_STYLE, Style_1_12);

    ObjectSet(AngleNum +"Angle_1_12",OBJPROP_WIDTH,Width_1_12); ObjectSet(AngleNum +"Angle_1_12",OBJPROP_BACK,Draw.as.Background); }//---------------------------------12/1-----------------------------//if(Direction_Up==true){ Sprom=(MathSqrt(StartPrice*Price)+12);} else { Sprom=(MathSqrt(StartPrice*Price)-12);} {EndPrice_12_1=(Sprom*Sprom)/Price;}if(Angle==true)

    if(Angle_12_1==true){datetime T2_12_1=StartTime+(S *86400);ObjectCreate(AngleNum

    +"Angle_12_1",OBJ_TREND,0,StartTime,StartPrice,T2_12_1,EndPrice_12_1); ObjectSet(AngleNum +"Angle_12_1", OBJPROP_COLOR, Col_12_1);

    ObjectSet(AngleNum +"Angle_12_1", OBJPROP_RAY, Angle_Ray);ObjectSet(AngleNum +"Angle_12_1", OBJPROP_STYLE, Style_12_1);

    ObjectSet(AngleNum +"Angle_12_1",OBJPROP_WIDTH,Width_12_1); ObjectSet(AngleNum +"Angle_12_1",OBJPROP_BACK,Draw.as.Background); }//---------------------------------1/13-------------------------------//if(Direction_Up==true){ Sprom=(MathSqrt(StartPrice*Price)+0.076923077);} else { Sprom=(MathSqrt(StartPrice*Price)-0.076923077);}

    Page 16

  • 8/13/2019 Ferrera Gann Angles Formula

    17/29

    Ferrera Gann Angles Formula {EndPrice_1_13=(Sprom*Sprom)/Price;}if(Angle==true)

    if(Angle_1_13==true){datetime T2_1_13=StartTime+(S *86400);

    ObjectCreate(AngleNum+"Angle_1_13",OBJ_TREND,0,StartTime,StartPrice,T2_1_13,EndPrice_1_13); ObjectSet(AngleNum +"Angle_1_13", OBJPROP_COLOR, Col_1_13);

    ObjectSet(AngleNum +"Angle_1_13", OBJPROP_RAY, Angle_Ray);ObjectSet(AngleNum +"Angle_1_13", OBJPROP_STYLE, Style_1_13);

    ObjectSet(AngleNum +"Angle_1_13",OBJPROP_WIDTH,Width_1_13); ObjectSet(AngleNum +"Angle_1_13",OBJPROP_BACK,Draw.as.Background); }//---------------------------------13/1-----------------------------//if(Direction_Up==true){ Sprom=(MathSqrt(StartPrice*Price)+13);} else

    { Sprom=(MathSqrt(StartPrice*Price)-13);} {EndPrice_13_1=(Sprom*Sprom)/Price;}if(Angle==true)

    if(Angle_13_1==true){datetime T2_13_1=StartTime+(S *86400);ObjectCreate(AngleNum

    +"Angle_13_1",OBJ_TREND,0,StartTime,StartPrice,T2_13_1,EndPrice_13_1); ObjectSet(AngleNum +"Angle_13_1", OBJPROP_COLOR, Col_13_1);

    ObjectSet(AngleNum +"Angle_13_1", OBJPROP_RAY, Angle_Ray);ObjectSet(AngleNum +"Angle_13_1", OBJPROP_STYLE, Style_13_1);

    ObjectSet(AngleNum +"Angle_13_1",OBJPROP_WIDTH,Width_13_1); ObjectSet(AngleNum +"Angle_13_1",OBJPROP_BACK,Draw.as.Background); }//---------------------------------1/14-------------------------------////-----------------------------AngleTime----------------------------//if(Box==true){datetime T2_Time=StartTime+((S*2)*86400);

    ObjectCreate(AngleNum+"Time",OBJ_TREND,0,StartTime,StartPrice,T2_Time,StartPrice); ObjectSet(AngleNum +"Time", OBJPROP_COLOR, ColBox); ObjectSet(AngleNum +"Time", OBJPROP_RAY, Box_Ray);

    ObjectSet(AngleNum +"Time", OBJPROP_STYLE, StyleBox); ObjectSet(AngleNum +"Time",OBJPROP_WIDTH,WidthBox); ObjectSet(AngleNum +"Time",OBJPROP_BACK,Draw.as.Background); } //-----------------------------Box0----------------------------// if(Box==true)

    {datetime T1_Box=StartTime;

    Page 17

  • 8/13/2019 Ferrera Gann Angles Formula

    18/29

    Ferrera Gann Angles Formula ObjectCreate(AngleNum +"Box0",OBJ_TREND,0,T1_Box,StartPrice,T1_Box,EndPrice_2_1); ObjectSet(AngleNum +"Box0", OBJPROP_COLOR, ColBox); ObjectSet(AngleNum +"Box0", OBJPROP_RAY, false);

    ObjectSet(AngleNum +"Box0", OBJPROP_STYLE, StyleBox); ObjectSet(AngleNum +"Box0",OBJPROP_WIDTH,WidthBox);

    ObjectSet(AngleNum +"Box0",OBJPROP_BACK,Draw.as.Background); //-----------------------------Box1/8----------------------------//

    datetime T2_Box=StartTime+((S/4)*86400);ObjectCreate(AngleNum

    +"Box1/8",OBJ_TREND,0,T2_Box,StartPrice,T2_Box,EndPrice_2_1); ObjectSet(AngleNum +"Box1/8", OBJPROP_COLOR, ColBoxm); ObjectSet(AngleNum +"Box1/8", OBJPROP_RAY, false);

    ObjectSet(AngleNum +"Box1/8", OBJPROP_STYLE, StyleBoxm); ObjectSet(AngleNum +"Box1/8",OBJPROP_WIDTH,WidthBoxm); ObjectSet(AngleNum +"Box1/8",OBJPROP_BACK,Draw.as.Background); //-----------------------------Box2/8----------------------------//

    datetime T3_Box=StartTime+((S/2)*86400);

    ObjectCreate(AngleNum+"Box2/8",OBJ_TREND,0,T3_Box,StartPrice,T3_Box,EndPrice_2_1); ObjectSet(AngleNum +"Box2/8", OBJPROP_COLOR, ColBox); ObjectSet(AngleNum +"Box2/8", OBJPROP_RAY, false);

    ObjectSet(AngleNum +"Box2/8", OBJPROP_STYLE, StyleBox); ObjectSet(AngleNum +"Box2/8",OBJPROP_WIDTH,WidthBox); ObjectSet(AngleNum +"Box2/8",OBJPROP_BACK,Draw.as.Background); //-----------------------------Box3/8----------------------------//

    datetime T4_Box=StartTime+((S/1.3333333333333333)*86400);ObjectCreate(AngleNum

    +"Box3/8",OBJ_TREND,0,T4_Box,StartPrice,T4_Box,EndPrice_2_1); ObjectSet(AngleNum +"Box3/8", OBJPROP_COLOR, ColBoxm); ObjectSet(AngleNum +"Box3/8", OBJPROP_RAY, false);

    ObjectSet(AngleNum +"Box3/8", OBJPROP_STYLE, StyleBoxm); ObjectSet(AngleNum +"Box3/8",OBJPROP_WIDTH,WidthBoxm); ObjectSet(AngleNum +"Box3/8",OBJPROP_BACK,Draw.as.Background); //-----------------------------Box4/8----------------------------//

    datetime T5_Box=StartTime+(S*86400);ObjectCreate(AngleNum

    +"Box4/8",OBJ_TREND,0,T5_Box,StartPrice,T5_Box,EndPrice_2_1); ObjectSet(AngleNum +"Box4/8", OBJPROP_COLOR, ColBox); ObjectSet(AngleNum +"Box4/8", OBJPROP_RAY, false);

    ObjectSet(AngleNum +"Box4/8", OBJPROP_STYLE, StyleBox); ObjectSet(AngleNum +"Box4/8",OBJPROP_WIDTH,WidthBox); ObjectSet(AngleNum +"Box4/8",OBJPROP_BACK,Draw.as.Background); //-----------------------------Box5/8----------------------------//

    datetime T6_Box=StartTime+((S/0.8)*86400);ObjectCreate(AngleNum

    +"Box5/8",OBJ_TREND,0,T6_Box,StartPrice,T6_Box,EndPrice_2_1); ObjectSet(AngleNum +"Box5/8", OBJPROP_COLOR, ColBoxm); ObjectSet(AngleNum +"Box5/8", OBJPROP_RAY, false);

    Page 18

  • 8/13/2019 Ferrera Gann Angles Formula

    19/29

    Ferrera Gann Angles Formula ObjectSet(AngleNum +"Box5/8", OBJPROP_STYLE, StyleBoxm); ObjectSet(AngleNum +"Box5/8",OBJPROP_WIDTH,WidthBoxm); ObjectSet(AngleNum +"Box5/8",OBJPROP_BACK,Draw.as.Background); //-----------------------------Box6/8----------------------------//

    datetime T7_Box=StartTime+((S*1.5)*86400);

    ObjectCreate(AngleNum+"Box6/8",OBJ_TREND,0,T7_Box,StartPrice,T7_Box,EndPrice_2_1); ObjectSet(AngleNum +"Box6/8", OBJPROP_COLOR, ColBox); ObjectSet(AngleNum +"Box6/8", OBJPROP_RAY, false);

    ObjectSet(AngleNum +"Box6/8", OBJPROP_STYLE, StyleBox); ObjectSet(AngleNum +"Box6/8",OBJPROP_WIDTH,WidthBox); ObjectSet(AngleNum +"Box6/8",OBJPROP_BACK,Draw.as.Background); //-----------------------------Box7/8----------------------------//

    datetime T8_Box=StartTime+((S/0.5714285714285714)*86400);ObjectCreate(AngleNum

    +"Box7/8",OBJ_TREND,0,T8_Box,StartPrice,T8_Box,EndPrice_2_1); ObjectSet(AngleNum +"Box7/8", OBJPROP_COLOR, ColBoxm);

    ObjectSet(AngleNum +"Box7/8", OBJPROP_RAY, false);ObjectSet(AngleNum +"Box7/8", OBJPROP_STYLE, StyleBoxm);

    ObjectSet(AngleNum +"Box7/8",OBJPROP_WIDTH,WidthBoxm); ObjectSet(AngleNum +"Box7/8",OBJPROP_BACK,Draw.as.Background); //--------------------------Box8/8-----------------------------// datetime T9_Box=StartTime+((S*2)*86400);

    ObjectCreate(AngleNum+"Box8/8",OBJ_TREND,0,T9_Box,StartPrice,T9_Box,EndPrice_2_1); ObjectSet(AngleNum +"Box8/8", OBJPROP_COLOR, ColBox); ObjectSet(AngleNum +"Box8/8", OBJPROP_RAY, false);

    ObjectSet(AngleNum +"Box8/8", OBJPROP_STYLE, StyleBox); ObjectSet(AngleNum +"Box8/8",OBJPROP_WIDTH,WidthBox); ObjectSet(AngleNum +"Box8/8",OBJPROP_BACK,Draw.as.Background); //------------------------------Triangle---------------------------// //-----------------------------Angle120----------------------------//

    if(Triangle==true) { datetime Angle120=StartTime+((S*86400)/3);

    ObjectCreate(AngleNum+"Angle120",OBJ_TREND,0,Angle120,StartPrice,Angle120,EndPrice_2_1); ObjectSet(AngleNum +"Angle120", OBJPROP_COLOR, ColTriangle); ObjectSet(AngleNum +"Angle120", OBJPROP_RAY, false);

    ObjectSet(AngleNum +"Angle120", OBJPROP_STYLE, StyleTriangle); ObjectSet(AngleNum +"Angle120",OBJPROP_WIDTH,WidthTriangle); ObjectSet(AngleNum +"Angle120",OBJPROP_BACK,Draw.as.Background);} //-----------------------------Angle270----------------------------//

    if(Triangle==true) { datetime Angle270=StartTime+(((S*86400)/3)*2);

    ObjectCreate(AngleNum+"Angle270",OBJ_TREND,0,Angle270,StartPrice,Angle270,EndPrice_2_1); ObjectSet(AngleNum +"Angle270", OBJPROP_COLOR, ColTriangle); ObjectSet(AngleNum +"Angle270", OBJPROP_RAY, false);

    Page 19

  • 8/13/2019 Ferrera Gann Angles Formula

    20/29

  • 8/13/2019 Ferrera Gann Angles Formula

    21/29

    Ferrera Gann Angles Formula //-----------------------------BoxH4/8----------------------------// ObjectCreate(AngleNum+"BoxH4/8",OBJ_TREND,0,StartTime,EndPrice_4_1,T9_Box,EndPrice_4_1); ObjectSet(AngleNum +"BoxH4/8", OBJPROP_COLOR, ColBox); ObjectSet(AngleNum +"BoxH4/8", OBJPROP_RAY, Box_Ray);

    ObjectSet(AngleNum +"BoxH4/8", OBJPROP_STYLE, StyleBox); ObjectSet(AngleNum +"BoxH4/8",OBJPROP_WIDTH,WidthBox); ObjectSet(AngleNum +"BoxH4/8",OBJPROP_BACK,Draw.as.Background); //-----------------------------BoxH5/8----------------------------// ObjectCreate(AngleNum+"BoxH5/8",OBJ_TREND,0,StartTime,EndPrice_5_1,T9_Box,EndPrice_5_1); ObjectSet(AngleNum +"BoxH5/8", OBJPROP_COLOR, ColBox); ObjectSet(AngleNum +"BoxH5/8", OBJPROP_RAY, Box_Ray);

    ObjectSet(AngleNum +"BoxH5/8", OBJPROP_STYLE, StyleBox); ObjectSet(AngleNum +"BoxH5/8",OBJPROP_WIDTH,WidthBox); ObjectSet(AngleNum +"BoxH5/8",OBJPROP_BACK,Draw.as.Background); //-----------------------------BoxH6/8----------------------------//

    ObjectCreate(AngleNum+"BoxH6/8",OBJ_TREND,0,StartTime,EndPrice_6_1,T9_Box,EndPrice_6_1); ObjectSet(AngleNum +"BoxH6/8", OBJPROP_COLOR, ColBox); ObjectSet(AngleNum +"BoxH6/8", OBJPROP_RAY, Box_Ray);

    ObjectSet(AngleNum +"BoxH6/8", OBJPROP_STYLE, StyleBox); ObjectSet(AngleNum +"BoxH6/8",OBJPROP_WIDTH,WidthBox); ObjectSet(AngleNum +"BoxH6/8",OBJPROP_BACK,Draw.as.Background); //-----------------------------BoxH7/8----------------------------// ObjectCreate(AngleNum+"BoxH7/8",OBJ_TREND,0,StartTime,EndPrice_7_1,T9_Box,EndPrice_7_1); ObjectSet(AngleNum +"BoxH7/8", OBJPROP_COLOR, ColBox); ObjectSet(AngleNum +"BoxH7/8", OBJPROP_RAY, Box_Ray);

    ObjectSet(AngleNum +"BoxH7/8", OBJPROP_STYLE, StyleBox); ObjectSet(AngleNum +"BoxH7/8",OBJPROP_WIDTH,WidthBox); ObjectSet(AngleNum +"BoxH7/8",OBJPROP_BACK,Draw.as.Background); //-----------------------------BoxH8/8----------------------------// ObjectCreate(AngleNum+"BoxH8/8",OBJ_TREND,0,StartTime,EndPrice_8_1,T9_Box,EndPrice_8_1); ObjectSet(AngleNum +"BoxH8/8", OBJPROP_COLOR, ColBox); ObjectSet(AngleNum +"BoxH8/8", OBJPROP_RAY, Box_Ray);

    ObjectSet(AngleNum +"BoxH8/8", OBJPROP_STYLE, StyleBox); ObjectSet(AngleNum +"BoxH8/8",OBJPROP_WIDTH,WidthBox); ObjectSet(AngleNum +"BoxH8/8",OBJPROP_BACK,Draw.as.Background); //-----------------------------BoxH9/9----------------------------// ObjectCreate(AngleNum+"BoxH9/9",OBJ_TREND,0,StartTime,EndPrice_9_1,T9_Box,EndPrice_9_1); ObjectSet(AngleNum +"BoxH9/9", OBJPROP_COLOR, ColBox); ObjectSet(AngleNum +"BoxH9/9", OBJPROP_RAY, Box_Ray);

    ObjectSet(AngleNum +"BoxH9/9", OBJPROP_STYLE, StyleBox); ObjectSet(AngleNum +"BoxH9/9",OBJPROP_WIDTH,WidthBox); ObjectSet(AngleNum +"BoxH9/9",OBJPROP_BACK,Draw.as.Background);

    Page 21

  • 8/13/2019 Ferrera Gann Angles Formula

    22/29

    Ferrera Gann Angles Formula //------------------------------------------------------------------// //-----------------------------BoxMH1/8----------------------------// ObjectCreate(AngleNum+"BoxMH1/8",OBJ_TREND,0,StartTime,EndPrice_1_4,T9_Box,EndPrice_1_4); ObjectSet(AngleNum +"BoxMH1/8", OBJPROP_COLOR, ColBoxm);

    ObjectSet(AngleNum +"BoxMH1/8", OBJPROP_RAY, false);ObjectSet(AngleNum +"BoxMH1/8", OBJPROP_STYLE, StyleBoxm);

    ObjectSet(AngleNum +"BoxMH1/8",OBJPROP_WIDTH,WidthBoxm); ObjectSet(AngleNum +"BoxMH1/8",OBJPROP_BACK,Draw.as.Background); //-----------------------------BoxMH2/8----------------------------// ObjectCreate(AngleNum+"BoxMH2/8",OBJ_TREND,0,StartTime,EndPrice_1_2,T9_Box,EndPrice_1_2); ObjectSet(AngleNum +"BoxMH2/8", OBJPROP_COLOR, ColBox); ObjectSet(AngleNum +"BoxMH2/8", OBJPROP_RAY, false);

    ObjectSet(AngleNum +"BoxMH2/8", OBJPROP_STYLE, StyleBox); ObjectSet(AngleNum +"BoxMH2/8",OBJPROP_WIDTH,WidthBox); ObjectSet(AngleNum +"BoxMH2/8",OBJPROP_BACK,Draw.as.Background);

    //-----------------------------BoxMH3/8----------------------------// if(Direction_Up==true)//{ Sprom=(MathSqrt(StartPrice*Price)+0.75);}{Sprom=StartPrice+(PriceAngle*0.75);} else // { Sprom=(MathSqrt(StartPrice*Price)-0.75);} {Sprom=StartPrice-(PriceAngle*0.75);} {EndPrice_MH=Sprom;}

    ObjectCreate(AngleNum+"BoxMH3/8",OBJ_TREND,0,StartTime,EndPrice_MH,T9_Box,EndPrice_MH); ObjectSet(AngleNum +"BoxMH3/8", OBJPROP_COLOR, ColBoxm); ObjectSet(AngleNum +"BoxMH3/8", OBJPROP_RAY, false);

    ObjectSet(AngleNum +"BoxMH3/8", OBJPROP_STYLE, StyleBoxm); ObjectSet(AngleNum +"BoxMH3/8",OBJPROP_WIDTH,WidthBoxm); ObjectSet(AngleNum +"BoxMH3/8",OBJPROP_BACK,Draw.as.Background); //-----------------------------BoxMH5/8----------------------------// if(Direction_Up==true)//{ Sprom=(MathSqrt(StartPrice*Price)+1.25);}{Sprom=StartPrice+(PriceAngle*1.25);} else // { Sprom=(MathSqrt(StartPrice*Price)-1.25);} {Sprom=StartPrice-(PriceAngle*1.25);} {EndPrice_MH=Sprom;}

    ObjectCreate(AngleNum+"BoxMH5/8",OBJ_TREND,0,StartTime,EndPrice_MH,T9_Box,EndPrice_MH); ObjectSet(AngleNum +"BoxMH5/8", OBJPROP_COLOR, ColBoxm); ObjectSet(AngleNum +"BoxMH5/8", OBJPROP_RAY, false);

    ObjectSet(AngleNum +"BoxMH5/8", OBJPROP_STYLE, StyleBoxm); ObjectSet(AngleNum +"BoxMH5/8",OBJPROP_WIDTH,WidthBoxm); ObjectSet(AngleNum +"BoxMH5/8",OBJPROP_BACK,Draw.as.Background); //-----------------------------BoxMH6/8----------------------------//

    Page 22

  • 8/13/2019 Ferrera Gann Angles Formula

    23/29

    Ferrera Gann Angles Formula if(Direction_Up==true)//{ Sprom=(MathSqrt(StartPrice*Price)+1.5);}{Sprom=StartPrice+(PriceAngle*1.5);} else // { Sprom=(MathSqrt(StartPrice*Price)-1.5);}

    {Sprom=StartPrice-(PriceAngle*1.5);} // {EndPrice_MH=(Sprom*Sprom)/Price;} {EndPrice_MH=Sprom;} ObjectCreate(AngleNum+"BoxMH6/8",OBJ_TREND,0,StartTime,EndPrice_MH,T9_Box,EndPrice_MH); ObjectSet(AngleNum +"BoxMH6/8", OBJPROP_COLOR, ColBox); ObjectSet(AngleNum +"BoxMH6/8", OBJPROP_RAY, false);

    ObjectSet(AngleNum +"BoxMH6/8", OBJPROP_STYLE, StyleBox); ObjectSet(AngleNum +"BoxMH6/8",OBJPROP_WIDTH,WidthBox); ObjectSet(AngleNum +"BoxMH6/8",OBJPROP_BACK,Draw.as.Background); //-----------------------------BoxMH7/8----------------------------// if(Direction_Up==true)

    //{ Sprom=(MathSqrt(StartPrice*Price)+1.75);}{Sprom=StartPrice+(PriceAngle*1.75);} else {Sprom=StartPrice-(PriceAngle*1.75);} // { Sprom=(MathSqrt(StartPrice*Price)-1.75);} {EndPrice_MH=Sprom;}

    ObjectCreate(AngleNum+"BoxMH7/8",OBJ_TREND,0,StartTime,EndPrice_MH,T9_Box,EndPrice_MH); ObjectSet(AngleNum +"BoxMH7/8", OBJPROP_COLOR, ColBoxm); ObjectSet(AngleNum +"BoxMH7/8", OBJPROP_RAY, false);

    ObjectSet(AngleNum +"BoxMH7/8", OBJPROP_STYLE, StyleBoxm); ObjectSet(AngleNum +"BoxMH7/8",OBJPROP_WIDTH,WidthBoxm); ObjectSet(AngleNum +"BoxMH7/8",OBJPROP_BACK,Draw.as.Background); //--------------------------------Triangle_H--------------------------// //-----------------------------AngleH120----------------------------//

    if(Direction_Up==true) //{ Sprom=(MathSqrt(StartPrice*Price)+1.5);}{Sprom=StartPrice+(PriceAngle/3);} else // { Sprom=(MathSqrt(StartPrice*Price)-1.5);} {Sprom=StartPrice-(PriceAngle/3);} // {EndPrice_MH=(Sprom*Sprom)/Price;} {EndPrice_MH=Sprom;} if(Triangle==true)

    { ObjectCreate(AngleNum+"AngleH120",OBJ_TREND,0,StartTime,EndPrice_MH,(T9_Box),EndPrice_MH); ObjectSet(AngleNum +"AngleH120", OBJPROP_COLOR, ColTriangle); ObjectSet(AngleNum +"AngleH120", OBJPROP_RAY, false);

    ObjectSet(AngleNum +"AngleH120", OBJPROP_STYLE, StyleTriangle); ObjectSet(AngleNum +"AngleH120",OBJPROP_WIDTH,WidthTriangle);

    Page 23

  • 8/13/2019 Ferrera Gann Angles Formula

    24/29

    Ferrera Gann Angles Formula ObjectSet(AngleNum +"AngleH120",OBJPROP_BACK,Draw.as.Background);} //-----------------------------AngleH270----------------------------//

    if(Direction_Up==true) //{ Sprom=(MathSqrt(StartPrice*Price)+1.5);}{Sprom=StartPrice+((PriceAngle/3)*2);}

    else // { Sprom=(MathSqrt(StartPrice*Price)-1.5);} {Sprom=StartPrice-((PriceAngle/3)*2);} // {EndPrice_MH=(Sprom*Sprom)/Price;} {EndPrice_MH=Sprom;} if(Triangle==true) { ObjectCreate(AngleNum+"AngleH270",OBJ_TREND,0,StartTime,EndPrice_MH,(T9_Box),EndPrice_MH); ObjectSet(AngleNum +"AngleH270", OBJPROP_COLOR, ColTriangle); ObjectSet(AngleNum +"AngleH270", OBJPROP_RAY, false);

    ObjectSet(AngleNum +"AngleH270", OBJPROP_STYLE, StyleTriangle); ObjectSet(AngleNum +"AngleH270",OBJPROP_WIDTH,WidthTriangle);

    ObjectSet(AngleNum +"AngleH270",OBJPROP_BACK,Draw.as.Background);} //-----------------------------AngleH120_1----------------------------//

    if(Direction_Up==true) //{ Sprom=(MathSqrt(StartPrice*Price)+1.5);}{Sprom=StartPrice+(PriceAngle*1.333333333);} else // { Sprom=(MathSqrt(StartPrice*Price)-1.5);} {Sprom=StartPrice-(PriceAngle*1.333333333);} // {EndPrice_MH=(Sprom*Sprom)/Price;} {EndPrice_MH=Sprom;} if(Triangle==true) { ObjectCreate(AngleNum+"AngleH120_1",OBJ_TREND,0,StartTime,EndPrice_MH,(T9_Box),EndPrice_MH); ObjectSet(AngleNum +"AngleH120_1", OBJPROP_COLOR, ColTriangle); ObjectSet(AngleNum +"AngleH120_1", OBJPROP_RAY, false);

    ObjectSet(AngleNum +"AngleH120_1", OBJPROP_STYLE, StyleTriangle); ObjectSet(AngleNum +"AngleH120_1",OBJPROP_WIDTH,WidthTriangle); ObjectSet(AngleNum +"AngleH120_1",OBJPROP_BACK,Draw.as.Background);} //-----------------------------AngleH270_1----------------------------//

    if(Direction_Up==true) //{ Sprom=(MathSqrt(StartPrice*Price)+1.5);}{Sprom=StartPrice+(PriceAngle*1.6666666666);} else // { Sprom=(MathSqrt(StartPrice*Price)-1.5);} {Sprom=StartPrice-(PriceAngle*1.666666666);} // {EndPrice_MH=(Sprom*Sprom)/Price;} {EndPrice_MH=Sprom;} if(Triangle==true) { ObjectCreate(AngleNum+"AngleH270_1",OBJ_TREND,0,StartTime,EndPrice_MH,(T9_Box),EndPrice_MH); ObjectSet(AngleNum +"AngleH270_1", OBJPROP_COLOR, ColTriangle);

    Page 24

  • 8/13/2019 Ferrera Gann Angles Formula

    25/29

    Ferrera Gann Angles Formula ObjectSet(AngleNum +"AngleH270_1", OBJPROP_RAY, false);

    ObjectSet(AngleNum +"AngleH270_1", OBJPROP_STYLE, StyleTriangle); ObjectSet(AngleNum +"AngleH270_1",OBJPROP_WIDTH,WidthTriangle); ObjectSet(AngleNum +"AngleH270_1",OBJPROP_BACK,Draw.as.Background);}

    }//------------------------------Cycle---------------------------//

    if(Cycle==true)//------------------------------CycleD46---------------------------//

    {datetime T9_Time=StartTime+(46 *86400);ObjectCreate(AngleNum +"D46",OBJ_VLINE,0,T9_Time,Bid);

    ObjectSet(AngleNum +"D46", OBJPROP_COLOR, ColCycle);ObjectSet(AngleNum +"D46", OBJPROP_STYLE, StyleCycle);

    ObjectSet(AngleNum +"D46",OBJPROP_WIDTH,WidthCycle);

    ObjectSet(AngleNum +"D46",OBJPROP_BACK,Draw.as.Background); //------------------------------CycleD61---------------------------// datetime T10_Time=StartTime+(61 *86400);

    ObjectCreate(AngleNum +"D61",OBJ_VLINE,0,T10_Time,Bid); ObjectSet(AngleNum +"D61", OBJPROP_COLOR, ColCycle);

    ObjectSet(AngleNum +"D61", OBJPROP_STYLE, StyleCycle); ObjectSet(AngleNum +"D61",OBJPROP_WIDTH,WidthCycle); ObjectSet(AngleNum +"D61",OBJPROP_BACK,Draw.as.Background);

    //------------------------------CycleD91---------------------------// datetime T11_Time=StartTime+(91 *86400);

    ObjectCreate(AngleNum +"D91",OBJ_VLINE,0,T11_Time,Bid); ObjectSet(AngleNum +"D91", OBJPROP_COLOR, ColCycle);

    ObjectSet(AngleNum +"D91", OBJPROP_STYLE, StyleCycle); ObjectSet(AngleNum +"D91",OBJPROP_WIDTH,WidthCycle); ObjectSet(AngleNum +"D91",OBJPROP_BACK,Draw.as.Background); //------------------------------CycleD121---------------------------// datetime T12_Time=StartTime+(121 *86400);

    ObjectCreate(AngleNum +"D121",OBJ_VLINE,0,T12_Time,Bid); ObjectSet(AngleNum +"D121", OBJPROP_COLOR, ColCycle);

    ObjectSet(AngleNum +"D121", OBJPROP_STYLE, StyleCycle); ObjectSet(AngleNum +"D121",OBJPROP_WIDTH,WidthCycle); ObjectSet(AngleNum +"D121",OBJPROP_BACK,Draw.as.Background);

    //------------------------------CycleD137---------------------------// datetime T13_Time=StartTime+(137 *86400);

    ObjectCreate(AngleNum +"D137",OBJ_VLINE,0,T13_Time,Bid); ObjectSet(AngleNum +"D137", OBJPROP_COLOR, ColCycle);

    ObjectSet(AngleNum +"D137", OBJPROP_STYLE, StyleCycle); ObjectSet(AngleNum +"D137",OBJPROP_WIDTH,WidthCycle); ObjectSet(AngleNum +"D137",OBJPROP_BACK,Draw.as.Background); //------------------------------CycleD182---------------------------// datetime T14_Time=StartTime+(182 *86400);

    Page 25

  • 8/13/2019 Ferrera Gann Angles Formula

    26/29

    Ferrera Gann Angles Formula ObjectCreate(AngleNum +"D182",OBJ_VLINE,0,T14_Time,Bid); ObjectSet(AngleNum +"D182", OBJPROP_COLOR, ColCycle);

    ObjectSet(AngleNum +"D182", OBJPROP_STYLE, StyleCycle); ObjectSet(AngleNum +"D182",OBJPROP_WIDTH,WidthCycle); ObjectSet(AngleNum +"D182",OBJPROP_BACK,Draw.as.Background);

    //------------------------------CycleD227---------------------------// datetime T15_Time=StartTime+(227 *86400);

    ObjectCreate(AngleNum +"D227",OBJ_VLINE,0,T15_Time,Bid); ObjectSet(AngleNum +"D227", OBJPROP_COLOR, ColCycle);

    ObjectSet(AngleNum +"D227", OBJPROP_STYLE, StyleCycle); ObjectSet(AngleNum +"D227",OBJPROP_WIDTH,WidthCycle); ObjectSet(AngleNum +"D227",OBJPROP_BACK,Draw.as.Background); //------------------------------CycleD242---------------------------// datetime T16_Time=StartTime+(242 *86400);

    ObjectCreate(AngleNum +"D242",OBJ_VLINE,0,T16_Time,Bid); ObjectSet(AngleNum +"D242", OBJPROP_COLOR, ColCycle);

    ObjectSet(AngleNum +"D242", OBJPROP_STYLE, StyleCycle);

    ObjectSet(AngleNum +"D242",OBJPROP_WIDTH,WidthCycle); ObjectSet(AngleNum +"D242",OBJPROP_BACK,Draw.as.Background);

    //------------------------------CycleD272---------------------------// datetime T17_Time=StartTime+(272 *86400);

    ObjectCreate(AngleNum +"D272",OBJ_VLINE,0,T17_Time,Bid); ObjectSet(AngleNum +"D272", OBJPROP_COLOR, ColCycle);

    ObjectSet(AngleNum +"D272", OBJPROP_STYLE, StyleCycle); ObjectSet(AngleNum +"D272",OBJPROP_WIDTH,WidthCycle); ObjectSet(AngleNum +"D272",OBJPROP_BACK,Draw.as.Background); //------------------------------CycleD317---------------------------// datetime T18_Time=StartTime+(317 *86400);

    ObjectCreate(AngleNum +"D317",OBJ_VLINE,0,T18_Time,Bid); ObjectSet(AngleNum +"D317", OBJPROP_COLOR, ColCycle);

    ObjectSet(AngleNum +"D317", OBJPROP_STYLE, StyleCycle); ObjectSet(AngleNum +"D317",OBJPROP_WIDTH,WidthCycle); ObjectSet(AngleNum +"D317",OBJPROP_BACK,Draw.as.Background); //------------------------------CycleD333---------------------------// datetime T19_Time=StartTime+(333 *86400);

    ObjectCreate(AngleNum +"D333",OBJ_VLINE,0,T19_Time,Bid); ObjectSet(AngleNum +"D333", OBJPROP_COLOR, ColCycle);

    ObjectSet(AngleNum +"D333", OBJPROP_STYLE, StyleCycle); ObjectSet(AngleNum +"D333",OBJPROP_WIDTH,WidthCycle); ObjectSet(AngleNum +"D333",OBJPROP_BACK,Draw.as.Background); //------------------------------CycleD365---------------------------// datetime T20_Time=StartTime+(365 *86400);

    ObjectCreate(AngleNum +"D365",OBJ_VLINE,0,T20_Time,Bid); ObjectSet(AngleNum +"D365", OBJPROP_COLOR, ColCycle);

    ObjectSet(AngleNum +"D365", OBJPROP_STYLE, StyleCycle); ObjectSet(AngleNum +"D365",OBJPROP_WIDTH,WidthCycle); ObjectSet(AngleNum +"D365",OBJPROP_BACK,Draw.as.Background); //------------------------------CycleD730---------------------------//

    Page 26

  • 8/13/2019 Ferrera Gann Angles Formula

    27/29

    Ferrera Gann Angles Formula datetime T21_Time=StartTime+(730 *86400);

    ObjectCreate(AngleNum +"D730",OBJ_VLINE,0,T21_Time,Bid); ObjectSet(AngleNum +"D730", OBJPROP_COLOR, ColCycle);

    ObjectSet(AngleNum +"D730", OBJPROP_STYLE, StyleCycle); ObjectSet(AngleNum +"D730",OBJPROP_WIDTH,WidthCycle);

    ObjectSet(AngleNum +"D730",OBJPROP_BACK,Draw.as.Background); //------------------------------CycleD1095---------------------------// datetime T22_Time=StartTime+(1095 *86400);

    ObjectCreate(AngleNum +"D1095",OBJ_VLINE,0,T22_Time,Bid); ObjectSet(AngleNum +"D1095", OBJPROP_COLOR, ColCycle);

    ObjectSet(AngleNum +"D1095", OBJPROP_STYLE, StyleCycle); ObjectSet(AngleNum +"D1095",OBJPROP_WIDTH,WidthCycle); ObjectSet(AngleNum +"D1095",OBJPROP_BACK,Draw.as.Background); //------------------------------CycleD1460---------------------------// datetime T23_Time=StartTime+(1460 *86400);

    ObjectCreate(AngleNum +"D1460",OBJ_VLINE,0,T23_Time,Bid); ObjectSet(AngleNum +"D1460", OBJPROP_COLOR, ColCycle);

    ObjectSet(AngleNum +"D1460", OBJPROP_STYLE, StyleCycle); ObjectSet(AngleNum +"D1460",OBJPROP_WIDTH,WidthCycle); ObjectSet(AngleNum +"D1460",OBJPROP_BACK,Draw.as.Background);

    //------------------------------CycleD1825---------------------------// datetime T24_Time=StartTime+(1825 *86400);

    ObjectCreate(AngleNum +"D1825",OBJ_VLINE,0,T24_Time,Bid); ObjectSet(AngleNum +"D1825", OBJPROP_COLOR, ColCycle);

    ObjectSet(AngleNum +"D1825", OBJPROP_STYLE, StyleCycle); ObjectSet(AngleNum +"D1825",OBJPROP_WIDTH,WidthCycle); ObjectSet(AngleNum +"D1825",OBJPROP_BACK,Draw.as.Background); //------------------------------CycleD2190---------------------------// datetime T25_Time=StartTime+(2190 *86400);

    ObjectCreate(AngleNum +"D2190",OBJ_VLINE,0,T25_Time,Bid); ObjectSet(AngleNum +"D2190", OBJPROP_COLOR, ColCycle);

    ObjectSet(AngleNum +"D2190", OBJPROP_STYLE, StyleCycle); ObjectSet(AngleNum +"D2190",OBJPROP_WIDTH,WidthCycle); ObjectSet(AngleNum +"D2190",OBJPROP_BACK,Draw.as.Background); //------------------------------CycleD2555---------------------------// datetime T26_Time=StartTime+(2555 *86400);

    ObjectCreate(AngleNum +"D2555",OBJ_VLINE,0,T26_Time,Bid); ObjectSet(AngleNum +"D2555", OBJPROP_COLOR, ColCycle);

    ObjectSet(AngleNum +"D2555", OBJPROP_STYLE, StyleCycle); ObjectSet(AngleNum +"D2555",OBJPROP_WIDTH,WidthCycle); ObjectSet(AngleNum +"D2555",OBJPROP_BACK,Draw.as.Background); //------------------------------CycleD2920---------------------------// datetime T27_Time=StartTime+(2920 *86400);

    ObjectCreate(AngleNum +"D2920",OBJ_VLINE,0,T27_Time,Bid); ObjectSet(AngleNum +"D2920", OBJPROP_COLOR, ColCycle);

    ObjectSet(AngleNum +"D2920", OBJPROP_STYLE, StyleCycle); ObjectSet(AngleNum +"D2920",OBJPROP_WIDTH,WidthCycle); ObjectSet(AngleNum +"D2920",OBJPROP_BACK,Draw.as.Background);

    Page 27

  • 8/13/2019 Ferrera Gann Angles Formula

    28/29

    Ferrera Gann Angles Formula //------------------------------CycleD3285---------------------------// datetime T28_Time=StartTime+(3285 *86400);

    ObjectCreate(AngleNum +"D3285",OBJ_VLINE,0,T28_Time,Bid); ObjectSet(AngleNum +"D3285", OBJPROP_COLOR, ColCycle);

    ObjectSet(AngleNum +"D3285", OBJPROP_STYLE, StyleCycle);

    ObjectSet(AngleNum +"D3285",OBJPROP_WIDTH,WidthCycle); ObjectSet(AngleNum +"D3285",OBJPROP_BACK,Draw.as.Background); //------------------------------CycleD3650---------------------------// datetime T29_Time=StartTime+(3650 *86400);

    ObjectCreate(AngleNum +"D3650",OBJ_VLINE,0,T29_Time,Bid); ObjectSet(AngleNum +"D3650", OBJPROP_COLOR, ColCycle);

    ObjectSet(AngleNum +"D3650", OBJPROP_STYLE, StyleCycle); ObjectSet(AngleNum +"D3650",OBJPROP_WIDTH,WidthCycle); ObjectSet(AngleNum +"D3650",OBJPROP_BACK,Draw.as.Background); //------------------------------CycleD4015---------------------------// datetime T30_Time=StartTime+(4015 *86400);

    ObjectCreate(AngleNum +"D4015",OBJ_VLINE,0,T30_Time,Bid);

    ObjectSet(AngleNum +"D4015", OBJPROP_COLOR, ColCycle);ObjectSet(AngleNum +"D4015", OBJPROP_STYLE, StyleCycle);

    ObjectSet(AngleNum +"D4015",OBJPROP_WIDTH,WidthCycle); ObjectSet(AngleNum +"D4015",OBJPROP_BACK,Draw.as.Background); //------------------------------CycleD4380---------------------------// datetime T31_Time=StartTime+(4380 *86400);

    ObjectCreate(AngleNum +"D4380",OBJ_VLINE,0,T31_Time,Bid); ObjectSet(AngleNum +"D4380", OBJPROP_COLOR, ColCycle);

    ObjectSet(AngleNum +"D4380", OBJPROP_STYLE, StyleCycle); ObjectSet(AngleNum +"D4380",OBJPROP_WIDTH,WidthCycle); ObjectSet(AngleNum +"D4380",OBJPROP_BACK,Draw.as.Background); //------------------------------CycleD4745---------------------------// datetime T32_Time=StartTime+(4745 *86400);

    ObjectCreate(AngleNum +"D4745",OBJ_VLINE,0,T32_Time,Bid); ObjectSet(AngleNum +"D4745", OBJPROP_COLOR, ColCycle);

    ObjectSet(AngleNum +"D4745", OBJPROP_STYLE, StyleCycle); ObjectSet(AngleNum +"D4745",OBJPROP_WIDTH,WidthCycle); ObjectSet(AngleNum +"D4745",OBJPROP_BACK,Draw.as.Background); //------------------------------CycleD5110---------------------------// datetime T33_Time=StartTime+(5110 *86400);

    ObjectCreate(AngleNum +"D5110",OBJ_VLINE,0,T33_Time,Bid); ObjectSet(AngleNum +"D5110", OBJPROP_COLOR, ColCycle);

    ObjectSet(AngleNum +"D5110", OBJPROP_STYLE, StyleCycle); ObjectSet(AngleNum +"D5110",OBJPROP_WIDTH,WidthCycle); ObjectSet(AngleNum +"D5110",OBJPROP_BACK,Draw.as.Background); //------------------------------CycleD5475---------------------------// datetime T34_Time=StartTime+(5475 *86400);

    ObjectCreate(AngleNum +"D5475",OBJ_VLINE,0,T34_Time,Bid); ObjectSet(AngleNum +"D5475", OBJPROP_COLOR, ColCycle);

    ObjectSet(AngleNum +"D5475", OBJPROP_STYLE, StyleCycle); ObjectSet(AngleNum +"D5475",OBJPROP_WIDTH,WidthCycle);

    Page 28

  • 8/13/2019 Ferrera Gann Angles Formula

    29/29

    Ferrera Gann Angles Formula ObjectSet(AngleNum +"D5475",OBJPROP_BACK,Draw.as.Background);

    }

    return(0);}

    Page 29