I'm not clear on how to utilize .mqh files. I hate typing and coding gives me a headache so I prefer to have "modules" that I can simply attach/detach as necessary.
So list of questions:
1. does the #include have to be up at the top? Can it instead be included in an IF/THEN argument?
2. What all can go into a .mqh? The wizard just creates a bunch of definers and other #include areas. Can I put something like this in a .mqh?
or can you just define variables within a .mqh with all the functions going into the mq4?
3. Anyone have any ideas on how to define resistance and support on the next higher time frame?
That's all for now, thanks in advance for answers and/or help.
So list of questions:
1. does the #include have to be up at the top? Can it instead be included in an IF/THEN argument?
2. What all can go into a .mqh? The wizard just creates a bunch of definers and other #include areas. Can I put something like this in a .mqh?
PHP Code
extern double Stoploss = 20
extern double RiskPercent = 3
//---- Set Stop Loss with fixed lot size
double SetStopLoss ()
{
double SetSL = (AccountFreeMargin () * RiskPercent * Lotsize/.1);
if (SetSL > Stoploss) SetSL = Stoploss;
return (SetSL);
}
3. Anyone have any ideas on how to define resistance and support on the next higher time frame?
That's all for now, thanks in advance for answers and/or help.