Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 933
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
Can you please tell me where I can find a code example that paints the indicator line in different colours?
As many colours, as many buffers! Provided the colour changes, you change the buffer! Lots of examples in CodeBase!
video link https://www.youtube.com/watch?v=k9Zo0SgrMCA
Is it possible to link three charts with different timeframes in the EA? Based on the indicator readings in two charts, a place and currency pair to enter is found, and based on the last third chart, an entry point, stop and profit are calculated, and a position is opened for entry. Is this technically possible? Or do you need to create an Expert Advisor specifically for a certain timeframe to work in one chart? We should not only count the readings of bars, ticks or candlesticks from charts of different timeframes, but analyze the readings of at least two indicators and open an order based on the third one.
Hello, I was writing a function for detecting flytags and got stuck in something that I do not understand. if statement does not work. maybe I wrote something wrong somewhere, I want you to take a fresh look, because I do not understand why. I even recorded a video from the debugger, showing that the values are equal, but it does not work. please put my brain in the place of))))
code:
{
int size = ArrayRange(arrayMinLow,0);
int digits = MarketInfo (symbol,MODE_DIGITS);
double spreadFlat = highLine - lowLine;
int directionFlat = -1;
int slew = 0;
for (int i = 0; i<size; i++){
double hl =arrayMinLow[i][0];
double ol = arrayMinLow[i][1];
double cl = arrayMinLow[i][2];
double ll = arrayMinLow[i][3];
if (hl == highLine || ol == highLine){ //вот тут не срабатывает
if( directionFlat == -1 || directionFlat == 0)
slew++;
directionFlat = 1;
}else if (cl == lowLine|| ll ==lowLine){
if( directionFlat == -1 || directionFlat == 1)
slew++;
directionFlat = 0;
}
}
if(slew >=4 )
return true;
return false;
}
video link https://www.youtube.com/watch?v=k9Zo0SgrMCA
I can't delete the previous post, I copied everything into html and removed the tag I need to edit the post