when looking in the journal the orders are not even trying to be modified. i assume there is a problem with the if statements double Trailing_Stop = 100 ; int init() { double ticksize = MarketInfo( Symbol (), MODE_TICKSIZE); if (ticksize == 0.0001 || ticksize == 0.001 ) pips = ticksize* 10 ;
the code indicator im trying to pull from is this #property copyright "" #property link "" //---- #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Red #property indicator_color2 Green #property indicator_width1 2 #property indicator_width2 2 //----
ive been trying to make an indicator but am stuck on this one part. below is the code ive been trying int i; int limit = 100; int test = 0; int OnInit() { return(INIT_SUCCEEDED); void OnDeinit(const int reason) { } void OnTick() { int lowest = iLowest(NULL,0,MODE_LOW, limit,0);