無料でロボットをダウンロードする方法を見る
Facebook上で私たちを見つけてください。
私たちのファンページに参加してください
興味深いスクリプト?
それではリンクにそれを投稿してください。-
他の人にそれを評価してもらいます
記事を気に入りましたか?MetaTrader 5ターミナルの中でそれを試してみてください。
スクリプト

Open two Market orders in opposite directions - MetaTrader 4のためのスクリプト

ビュー:
17218
評価:
(12)
パブリッシュ済み:
2018.03.12 10:38
アップデート済み:
2021.07.15 06:16
このコードに基づいたロボットまたはインジケーターが必要なら、フリーランスでご注文ください フリーランスに移動

This simple script opens two Market orders in two opposite directions. The essence of this is when trading news, price often breaks out in one direction. So ideally executing this script shortly before the news release would imply that if a breakout occurs in one direction one of the market orders (the one in the wrong direction) will be closed by the price triggering the stop loss, while the order will be left open to accumulate profits.

It should be noted that this is not always this case, however the above example is just an illustration where one might require a script like this.

Whats more? This script is %100 compatible with ECN accounts that do not allow the stop levels alongside OrderSend function.


Inputs

input double   InpLots        = 0.01;                    //Size of the trade
input int      InpSL          = 150;                     //Stop loss in points 150 = 15 pips
input int      InpTP          = 300;                     //Take profit in points 300 = 30 pips
input int      InpRetries     = 10;                      //Retries in case of failed trades 
MA Cross Studies MA Cross Studies

Simple program using the moving average as bias and providing many trade and money management options.

Regular Expressions Tester MQL4 Regular Expressions Tester MQL4

The script allows you to try regular expressions in MetaTrader 4.

Identical candles Identical candles

This is the semaphore indicator of candles that highlights the candles on the chart, which have same direction like all candles for your chosen timeframes.

Limit orders Pro Limit orders Pro

This script provides quick work with a large number of pending orders in the market and contains functions for placing, changing, and deleting of orders within the your price range.