I'm new MQL4. I do not know where to post my question ... How do I create asimple command code to go up breaking the bar higher eight? Thanks with Greetings from Italy. Help me! Mauritius.
- Workspace
- Force Index - Oscillators - Technical Indicators - Price Charts, Technical and Fundamental Analysis
- Generating included code - Developing programs
Welcome.
"bar higher eight" didn't translate. I assume you mean when the price breaks above the high of the last 8 bars.
int iHH = Highest(NULL,0, MODE_HIGH, 8, 1); double HH = High[iHH]; if (Bid > HH){ Print("Higher than last 8 bars"); }
WHRoeder:
Benvenuto.
"Bar superiore a otto" non tradurre. Presumo che significa quando il prezzo rompe sopra il massimo degli ultimi 8 bar.
Thank's WHR from Italy!
the code is wrong, does not work!
CRAY:
the code is wrong, does not work!
Looks good to me . . . . maybe you should show how you have used it in your code.
the code is wrong, does not work!
//+------------------------------------------------------------------+
//| alt0 rottura 2.mq4 |
//| |
//| |
//+------------------------------------------------------------------+
#property copyright "AAA"
#property link "BBB"
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int iHH = Highest(NULL,0,MODE_HIGH,8,1);
double HH = High[iHH];
if (Bid> HH){
Print("Higher than 8 bars");
}
CRAY:
I need a function of starting to run the script on the graph.
OK, learn from the Book or try here: Code this for me quick
I need a function of starting to run the script on the graph.
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