Metatrader Forum | Forex Expert-Advisor | Broker & Forex Tools

Metatrader Forum | Forex Expert-Advisor | Broker & Forex Tools (http://www.expert-advisor.com/forum/index.php)
-   Programmierung MQL4 (http://www.expert-advisor.com/forum/forumdisplay.php?f=220)
-   -   vergangene Kerze als SL einfügen (http://www.expert-advisor.com/forum/showthread.php?t=6771)

MarkusWilhelm89 10.09.20 13:04

vergangene Kerze als SL einfügen
 
Hi,
kann mir jemand helfen?
Ich möchte in meinen OrderSend() einen variablen SL haben.


Damit meine ich zB:
Bei einer BUY-Order soll der SL der Schlusskurs der tiefsten Kerze (zB der letzten 10 Kerzen) haben

steh' irgendwie aufm Schlauch... :confused:

Indikator-Trading 10.09.20 13:17

Bitteschön:

Code:

  double Buy_SL = iClose(NULL,0,iLowest(NULL,0,MODE_CLOSE,10,0));
  double Sell_SL = iClose(NULL,0,iHighest(NULL,0,MODE_CLOSE,10,0));


MarkusWilhelm89 10.09.20 13:52

super, danke :-)


Alle Zeitangaben in WEZ +1. Es ist jetzt 22:34 Uhr.

Powered by vBulletin® Version 3.8.5 (Deutsch)
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.1
Powered by vBCMS® 2.7.0 ©2002 - 2024 vbdesigns.de
Copyright ©2009 - 2023 by Expert-Advisor.com - Das Metatrader Forum