//+------------------------------------------------------------------+ //| | //+------------------- --------------------+ #property copyright "" #property link "/" extern string Expert_Name = "---- Value tester ----"; int Current; //+------------------------------------------------------------------+ //| expert initialization function | //+------------------------------------------------------------------+ int init() { return(0); } //+------------------------------------------------------------------+ //| expert deinitialization function | //+------------------------------------------------------------------+ int deinit() { return(0); } //+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ int start() { //+------------------------------------------------------------------+ //| Variable Begin | //+------------------------------------------------------------------+ double FX_Fish_Green_0, FX_Fish_Green_1, FX_Fish_Red_0, FX_Fish_Red_1 ; FX_Fish_Green_0 = iCustom(NULL,0,"FX_Fish",10,0,"False","False",0,0); FX_Fish_Green_1 = iCustom(NULL,0,"FX_Fish",10,0,"False","False",0,1); FX_Fish_Red_0 = iCustom(NULL,0,"FX_Fish",10,0,"False","False",1,0); FX_Fish_Red_1 = iCustom(NULL,0,"FX_Fish",10,0,"False","False",1,1); string FX_FishDirection = "None"; if(FX_Fish_Green_0 > FX_Fish_Green_1 ) FX_FishDirection = "Buy"; if(FX_Fish_Red_0 < FX_Fish_Red_1 ) FX_FishDirection = "Sell"; Comment( "Fx Fish Green_0 ", FX_Fish_Green_0 ,"\n", "FX_Fish_Green_1 ", FX_Fish_Green_1 ,"\n", "FX_Fish_Red_0 ", FX_Fish_Red_0,"\n", "FX_Fish_Red_1 ", FX_Fish_Red_1 ,"\n", "Fish Direction ", FX_FishDirection ); }