Help with coding of Indicator based on GAPS as Support & Resistance
Call the functions by writing
DrawLine_up(Close[i+1]); instead of Buy[i]=Close[i+1];
DrawLine_down(Close[i+1]); instead of Sell[i]=Close[i+1];
Put the following code after ALL code in your mq4 file.
void DrawLine_up(double cierre)
{
ObjectDelete("Line");
ObjectCreate("Line",OBJ_HLINE,0,Time[0],cierre);
ObjectSet ( "Line", OBJPROP_COLOR, Blue);
}
/////////////////////////////////////////////////////////////////////
void DrawLine_down(double cierre2)
{
ObjectDelete("Line2");
ObjectCreate("Line2",OBJ_HLINE,0,Time[0],cierre2);
ObjectSet ( "Line2", OBJPROP_COLOR, Red);
}
Hello Guys how are you?
Well i'm doing fine, but stuck with an idea i have for an indicator i'm creating, there are some rules i developed and right now trading a strategy based out of this manually, but i think my trading would be more effective if i had the indicator i am trying to create, but stuck as i have low training in coding...
Well what i had was another indicator i created with some help for breacking support and resistance in multitimeframes drawing arrows, it was not a big long extended indicator it ws simple so i took it and started looking how could i make it work into this new idea, so i will need a hand to code for me or make simple changes....
For that i think the code for showing them as simple lines that last 60 min or a sepcified time would be something like:
So this is the first part of the code i need somebody help me make the fixes for 1: instead of drawing an arrow, to draw a line, below current price blue and above current price color red,and that the lines last 60min or the time the user like to use...
I hope somebody can help, thanks