
通过MQL5社区和服务探索MetaTrader 5的新机遇
- www.mql5.com
A script for opening a grid of orders If you need to quickly open several pending orders (Buy Limit, Sell Limit, Buy Stop, Sell Stop) on a certain distance from the current price, this script will do all the routine for you! Allow AutoTrading before running the script. Usage: Run the script on a chart. Input Parameters: Language of messages...
- 請問怎樣在編程裡加上這個Label
- 请问有高手免费写這個Label吗?
- how to run script on MT4 1045 build
//+------------------------------------------------------------------+ //| test.mq4 | //| Copyright 2015, MetaQuotes Software Corp. | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2015, MetaQuotes Software Corp." #property link "https://www.mql5.com" #property version "1.00" #property strict //+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ void OnTick() { double a =(+MarketInfo("UKOUSD",MODE_ASK)); double b=(+MarketInfo("USOUSD",MODE_BID)); double c=a-b; ObjectCreate("name",OBJ_LABEL,0,Time[10],100.43200); ObjectSetText ("name","差价="+DoubleToStr((c),4), 30, "Times New Roman", Yellow); if((c)<=-20.0000) PlaySound("alert.wav"); return; }