Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Bollinger Bands
- double dBandsLong = iBands(NULL,0,10,1,1,PRICE_OPEN,MODE_UPPER,0);
- double dBandsShort = iBands(NULL,0,10,1,1,PRICE_OPEN,MODE_LOWER,0);
- // Relative Strength Index
- double dRSI = iRSI(NULL,0,7,PRICE_OPEN,0);
- double dRSI2 =iRSI(NULL,0,7,PRICE_OPEN,1);
- // MACD
- double dMACD = iMACD (NULL,0,13,26,9,PRICE_OPEN,MODE_MAIN,0);
- // hier, werden die Indikatoren eingelesen, jetzt kann man einfach ihre Variablen Namen weiter benutzen.
- if(Open[0]>dBandsLong && dMACD>0) & (dRSI<70 && dRSI2>70)// prüfen ob Long Order
- {
- SendOrder("Long"); // Die Funktion "OrderSend()" wird aufgerufen mit dem Parameter "Long"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement