Questions from Beginners MQL4 MT4 MetaTrader 4 - page 173
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
I encounter much more expression and negativity in this community every day, and no one reacts.
Anyway, that's the end of the question.
If you want to create your own keyboard and keyboard controls (CHART_MOUSE_SCROLL, CHART_KEYBOARD_CONTROL ...), you need to disable it.
But it is not possible.
The speed of But such an interface will of the BE are significantly higher than the base one's, since IT is not Possible to use asynchronous functions The very INHIBITED ChartGetInteger
Thank you very much again, Nikolai. I tried to convert your CanvasBar.mq5 to mt4, added some input options regarding widths / colours / ... (so it can be used for example "to simulate ninjatrader candle style")
Hello! I have a standard iEnvelopes indicator!
I can't get it to work the way I need it to!
Ie, the need to when the candle touched or crossed the line on the current candle UP, then opened BUY, and the candle touched or crossed the line on the current candle DOWN, then opened SELL..... and it happened once (the signal-hit and all, another signal-hit and all constantly)!
Please help!
Hello! There is a standard indicator iEnvelopes!
I cannot make it work the way I want it to!
Ie, the need to when the candle touched or crossed the line on the current candle UP, then opened BUY, and the candle touched or crossed the line on the current candle DOWN, then opened SELL..... and it happened once (the signal-hit and all, another signal-hit and all constantly)!
Please help!
I need to add process understanding to the code :-)
As long as the candle hasn't closed, High[0] can only go up, Low[0] only go down, and the decompiled envelopes do whatever they want :-)
If the envelope is not taken from Open prices, you cannot look at an unclosed bar.
you need to add process understanding to the code :-)
Until the candle closes, High[0] can only go up, Low[0] only go down, while the envelopes from the decompile behave as they want :-)
If the envelope is not taken from Open prices, you cannot look at the unclosed bar.
Help me understand how to calculate MA on an array.
I build MA by open-close, but from the graph it looks like it is calculated from right to left.
I usediMAOnArray andSimpleMAOnBuffer as tools, is there a better option?
Hello!!! I use this code to translate a link in a comment, but systematically once a day it gives me an error: web error 5203 (ERR_WEBREQUEST_REQUEST_FAILED. Error in the result of HTTP request)
Is there any way to fix it?
Can you please tell me how to make weighting coefficients for signals?
For example, I have three signals by scale: crossover, comparison1 (previous bar vs. previous bar) and comparison 2 (previous bar vs. previous bar on a higher TF).
I try to do it with MAKD build in MT, but it doesn't open deals. There is nothing in the log. I.e. the standard EA basis has not been touched, just the logics of position opening has been changed. So the triplet is the basis of the MT MAKD-advisor (normal)
Just don't swear for nubian code, I'm not a programmer
...
Вводимые параметры
input double TradeLevel_BUY = 1;
input double TradeLevel_SELL = -1;
input double w_S_MA_1 = 1;
input double w_S_MA_2 = 1;
input double w_S_MA_3 = 1;
input double w_S_MA_4 = 1;
input double w_S_MA_5 = 1;
input double w_S_MA_6 = 1;
...
----------------
...
void OnTick(void)
{
double MA_Fast_1,
MA_Fast_2,
MA_Slow_1,
MA_Slow_2,
MA_Fast_LargeTF_1,
MA_Fast_LargeTF_2,
MA_Slow_LargeTF_1,
MA_Slow_LargeTF_2;
double S_MA_1,
S_MA_2,
S_MA_3,
...
MA_Slow_LargeTF_2=iMA(NULL,0,MA_Slow_LargeTF_2_Period,MA_Slow_LargeTF_2_Shift,MODE_EMA,PRICE_CLOSE,2);
...
double Sum;
if (MA_Fast_1>MA_Slow_1)
{
S_MA_1=1*w_S_MA_1;
}
else
{
S_MA_1=0;
}
return;
if (MA_Fast_1>MA_Fast_2)
{
S_MA_2=1*w_S_MA_2;
}
else
{
S_MA_2=0;
}
return;
if (Open[1]<MA_Fast_LargeTF_1 && Close[1]>MA_Fast_LargeTF_1 || Open[1]>MA_Fast_LargeTF_1 && Close[1]>MA_Fast_LargeTF_1)
{
S_MA_3=1*w_S_MA_3;
}
else
{
S_MA_3=0;
}
return;
...
if (MA_Fast_1<MA_Slow_1)
{
S_MA_4=-1*w_S_MA_4;
}
else
{
S_MA_4=0;
}
return;
if (MA_Fast_1<MA_Fast_2)
{
S_MA_5=-1*w_S_MA_5;
}
else
{
S_MA_5=0;
}
return;
if (Open[1]>MA_Fast_LargeTF_1 && Close[1]<MA_Fast_LargeTF_1 || Open[1]<MA_Fast_LargeTF_1 && Close[1]<MA_Fast_LargeTF_1)
{
S_MA_6=-1*w_S_MA_6;
}
else
{
S_MA_6=0;
}
return;
Sum=S_MA_1+S_MA_2+S_MA_3+S_MA_4+S_MA_5+S_MA_6;
...
if(Sum>TradeLevel_BUY)
{
ticket=OrderSend(Symbol(),OP_BUY,Lot,Ask,3,Ask-SL*Point,Bid+TP*Point,"Optim",16384,0,Blue);
...
if(Sum<=TradeLevel_SELL)
{
ticket=OrderSend(Symbol(),OP_SELL,Lot,Bid,3,Bid+SL*Point,Ask-TP*Point,"Optim",16384,0,Red);
if(ticket>0)
Good afternoon! How do I implement this function correctly (I think you'll understand what I want to do)?
Hi. Need help with winApi user32.dll.
There is one Chart in the profile. Need a script to open two more Chatr's. All three Charts (was one and opened two more) to do the specified size in the set place.
No matter how I try - all no luck.
This script changes the size and position of the Chart on which I throw.