[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 45
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
To xrust:
))
but if i don't use magic number - what should i write instead?
either == 0, or remove that line
1, what is an EA ?
2, how to use it,
3, does it really trade by itself? if so, how to use it,
4, if i run it via strategy tester, how do i decrypt the output there (chart.... etc.) and how do i use it in trading.
Please answer these 4 questions =(
Hello!
Please help me with advice or a solution. I'm trying to get the Expert Advisor to give a signal when the previous bar "absorbs" the previous one.
1 - if absorption occurred upwards2 - if absorption occurred downwards.
I think everything is elementary, compare prices open and close and voila ... but it's not. When I hover my mouse over the previous 2 bars, it's clear that the last one is eating the penultimate one.
Very much hope for help, and thank you in advance
Here is the text:
int start(){
//----
if (SShort()==1)
Alert("1");
}
if (SLong()==1)
Alert("2");
}
//----
return(0);
}
//+------------------------------------------------------------------+
int SShort()
{int MS=0;
if (Open[1]>Close[2] && Close[1]<Open[2] && Open[1]>Close[1] && Open[2]<Close[2])
MS=1;
return(MS);
}
//+------------------------------------------------------------------+
int SLong()
{
int ML=0;
if(Open[1]<Close[2] && Close[1]>Open[2] && Open[1]<Close[1] && Open[2]>Close[2])
ML=1;
return(ML);
}
//+------------------------------------------------------------------+
The picture shows the principle of absorption. Thanks in advance.
I am not sure what I am looking for. Only the absorption of the candlestick body is meant.
replace with
and in the second case alsoForgive me, but it is not at all clear what is meant by this page....??????????
either == 0, or get rid of that line.
one more question - help please)
How do I define the order type (was the order closed by Buy or Sell)?
Hello!
Can you advise a newbie? How to prescribe an indicator line in an EA, not the position relative to another line < & >, but its movement up or down. I understand that one variable should show the rebound, and the other is responsible for the fall.
Thanks in advance.
Hello!
Some advice for a beginner. How to prescribe the line of indicator in the expert advisor, not the position relative to another line < & >, but its movement up or down. I understand that one variable should show the rebound, and the other is responsible for the fall.
Alternatively ;)
Write a function that detects whether the line is going up or down and returns +1 or -1 depending on that.
Call this function in your EA and get the answer you need.
Alternatively: :))
Write a function that determines whether the line is going up or down, and depending on this, returns +1 or -1.
Call this function in your EA and get the right answer.
Thank you!
Can I also give a name to the line? Indicator "ADX", Line ADX -(ADXZ-positive, ADXz-negative) Line+DI-(pDIR-positive, pDIr-negative), Line -DI (mDIB-positive, mDIb-negative) i.e. two variables per line, already for further location. For example( ADXz && pDIR >mDIb)