[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 544
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
Помогите пожалуйста, локальные переменные в функции start() сбрасывают своё значение при каждом новом тике?
Declare static variables (denoted by static) before calling start()
I understand that I should organize review of orders in a loop, but I cannot figure out how to keep track of opened positions and set orders simultaneously for different currency pairs and different timeframes. Damn, I have been stuck in this situation for a month. I made a textbook Expert Advisor, which trades only on one pair and one timeframe, but it, of course, does not fit my TS and does not satisfy the requirements I need for implementing a trading system.
Already a cry for help... Help me to understand it. If only hint, where can I read about it (only, please, don't send me back to the tutorial), and preferably with examples (what a beginner without examples - to feel is always better than to see ...).
I'd be grateful to anyone who responds in any way to the plea for help.
Уважаемые гуру! Подскажите застрявшему в дебрях чайнику как организовать учёт ордеров и отслеживание событий по нескольким валютным парам и нескольким ТФ одновременно в одном советнике.....
Буду благодарен всем, кто хоть как-то откликнется на мольбу о помощи.
Perhaps a function (placed outside the START function) can help you track positions:
Example (in the Start function):https://www.mql5.com/ru/forum/107476/page18
if (NumberOfPositions("EURUSD", OP_BUY, Magic)>0) {// if there are buy positions on EURUSD,
if (MarketInfo("EURUSD",MODE_BID)>=1.3500) {// if the current price of the Euro has risen above 1.3500 then close them:
ClosePosFirstProfit("EURUSD",OP_BUY,Magic); }} //also with the same function.
Of course you can.
You can't do it any other way. Sell and buy will always have to be modified separately. Because they are opened at different prices (buy at ask, sell at bid). Stops as well.
Professionals, tell me... Is it possible to draw indicator lines as a background. For example, can I add code to draw the MA line below the bars?
This question may seem strange, but I can't find the answer:
Why when working in "automat", with the same SL, TP, the result of the trades are different ? (I don't know why I started working with such trades and I don't know what to do with them.) I would be grateful if you could at least give me a link to the appropriate.
Профи, подскажите... Можно ли рисовать линии индикаторов как фон. Например добавить код, чтобы линия МА рисовалась под барами?
Properties (F8), General tab, Graph top field.