
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
MLQ4 Course question
CodersGuru,
In your EA example from your course, you defined a "Crossed" function. You mention that the static variables holds their value between REPEATED calls... my question is, do these repeated calls need to be CONCURRENT?
I am creating an EA using 4 time periods, and I make a call to "Crossed" for each of the 4 line pairs... will the static variables reset after each pair, or are they only set once when first executed, then until exit?
I guess I need to know why the static variables aren't initialized each time "Crossed" is called... and under what condition they are reset....
Is there a document somewhere I can research this myself? MT4 "HELP" is almost useless
Thanks for your help.
-charliev
is there a Favorite Pivot indicator?
I've seen Too many pivot indicators for MT4.
I tried a few and had S & R lines in different places.
anybody have a Good one that is their favorite?
Please post chart with the setups.
A picture is worth a thousand words.
Thanks
LSS Oscilator
Hey!
I found description about that indicator at google
Have someone used it or heard something about it ?
ZigZag Question
Hello Everyone,
Does anyone have any idea on how I can modify the Z-Z1 ZigZag indicator to NOT erase False Turning Points? I would like to see them?
Thank you for your Time
EK
Double Back Breakout
I was experimenting in MT3 and tested a simple algorithm and had some pretty good results! Can someone else please verify this backtest? Any other ideas or feedback is much appreciated!
/*[[
Name := Double-Back Breakout
Author := Nicholishen @ Apex Group Investments, LLC
Lots := 0.1
Stop Loss := 100
Take Profit := 20
Trailing Stop := 0
]]*/
Define: PeriodsBack(50),Greater%(50),dBack(50),Buy1Sell2(1);
var: diff(0),i(0),avg(0),p1d(0),vol(0),volavg(0),vol1(0),profit(0);
diff=0;vol=0;
for i=PeriodsBack downto 2{
vol= vol + Volume;
diff= diff + (high-low);
}
avg= diff / (PeriodsBack -2);
volavg = vol / (PeriodsBack -2);
p1d=High[1]-Low[1];
vol1=Volume[1];
if p1d >= avg / (Greater% / 100) And vol1 >= volavg / (Greater% / 100)then {
if close[1]>close[2] and TotalTrades < 1 then{
SetOrder(OP_BUY,Lots,Ask,3,Ask- Stoploss*Point,Ask+TakeProfit*Point,Pink);
}
};
for i=1 to TotalTrades{
profit = ord(i,VAL_PROFIT);
if Abs(profit) >= dBack * (Lots * 10) then{
if TotalTrades < 2 then{
SetOrder(OP_SELL,Lots*2,Bid,3,Bid + Stoploss*Point,Bid -TakeProfit*Point,Red);
}
}
};
Comment("Volume Avereage is ",volavg," CandleSticks are Averaging ",avg);
Hello,
There are errors, want to check it so that one can test it. Thank you
Raw Ideas
is there some kinda of "stop" or anything similar that can use
medium-price/price-average?
for example, i buy at 1,2313 and expecting the value to go up to
1,2339 (target is 20), but when it falst t 1,2269 i double the
investment, but now the target for both orders will be 1,2305, because
my medium price is 1,2285.
The system will not use any indicator to enter(begin operating), so
it'll only starts when orders of sell and buy are commanded; and if
there is a profit of N pips it closes the order and right away and
then opens another order for the same amount. If I loose X pips then
I'll do the medium price.
is there anything that does it automatically for me? if negative,
would anyone here who knows how to program do it for me?
thanks a lot
FiboPiviots including monday!
For all interested
https://www.mql5.com/en/forum/173201/page73
MQLII convertion question !
Hello all
I'm trying to convert MQLII code tou MQL4 code, but I have some questions about:
// MQLII code
Var : MyCondition(False);
Vars : MyValue(1.2345);
Variable : Counter(0);
Variable : String("");
Variables : String1("Some string");
Variables : Counter(0);
- What is the difference between these syntaxes: Var, Vars, Variable and Variables ???
- Can I declare Integer, Double, String or Boolean using all of these Keywords ?
- And how can I know the data type of these variables like "Counter" is it Integer, Double ?
Big thanks if you can explain me this syntax.
Yousky