I tend to think of short as sell as the code uses the word sell for short trades
Checking for Equivalance in an if statement is == Note 2 equal symbols together.
Don't look for equivalance in variables of type double (floating point) use greater than > and less than <
If bar 1 becomes the new highest high of 20 you will continue to put in short trades. Think about using the last highest high back from your 20 lowest low
- You need "if ( Bid == iLow" to even compile
- You want <= since double rarely compare equal.
See also Can price != price ? - MQL4 forum and Bid/Ask: (No Need) to use NormalizeDouble in OrderSend - MQL4 forum
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
Hi,
I try to develop a little logic using Highest High / Lowest Low 20.
I'd like to enter a short trade at LL20.