Forum

Open position in specific time

Hi and regards. I want to open positions in specific times. is there any already written expert or a guide about how to insert some specific times and let the position operates in that times

Select Object from variety

I have five HLine Objects and I would like to automatically select the one that is closest to the bid price. is it even possible

how to calculate how much has been traded in each price?

Hello my dear fellas. today somebody asked me if there is a way to calculate how much has been traded in each price per lot? I didn't know so I though I ask you guys about it. can we calculate how much lot has been traded in each price let's say in last hour? I am not pretty sure but it can mean

How to get rid of duplicated characters in a string

here is my code: //+------------------------------------------------------------------+ //| GetRid.mq5 | //| Babak Jafarzadeh | //| https://goodlibrary.ir |

problem with external files

here is my code. //+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ int handler; string source = "test.txt" ; int OnInit () { //---

Converting date to arabic calendar

today in calendar is 2019.11.15 and as long it results as: 1573779710. to convert it to Arabic or lunar calendar, it must be 1441.03.18. I can not come to this number by subtracting numbers from 1573779710 because it starts from 1970.01.01 is there any other way to convert regular calendar of forex

How to prevent from opening new order in same candle

Hi fellow traders. I am trying to write an Expert and saying under specific circumstances, place an order and take profit or stop loss. But sometimes it opens and closes under the same candle. And because in this candle the situations are still valid, it opens a new trade. How can I say if it

calculate DT oscillator

Hi fellow traders I have seen this indicator Mladen Rakic , DT Oscillator I already tried iCustome function to calculate the required parameters but when I want to ask parameters of two different time periods, my computer freezes. so I wanted to know if it is possible to calculate them in my own

changing timeframe

hi I was up to write an indicator to help accessing the charts on full screen mode. on of the things I was up to do was changing the timeframes with short keys. is there anyone who can help me what are the codes to access and change the timeframes? is there any? thanks and regards

how to call MACD signal and main in my EA

I was going to write an EA based on MACD indicator . I have problems with calling main and signal amounts in my EA. is there anybody able to give me a guide