Raphael Schwietering / Publications
Forum
How to avoid Update Metatrader 4
Hi, due to my testing setup i need an idea how to avoid automatic update from metatrader. Is there an opportunity how to handle with it. Or possibe to rollback to older Version
Counting open orders?
Hi, i am strugglling to get run such mq4 code in mql5. Can someone help me? The code i use in mql4 is this. void OpenOrdersResults() { //------------------------------------------------------ SumOrders= 0 ; BuyOrders= 0 ; SellOrders= 0 ; TypeLastOrder=- 1 ; ProfitBuyOrders= 0 ;
Get the last xxx numbers of a bigger number
Hi, i have a magicnumber e.g 10055 or 100555. How can i get the last 2 or 3 numbers from that big numbers
How to calculate lotsize depends in risk percent
Hi, Did someone have a formula how i can calculate lotsize depends in stoploss and freemargin? E.g Accountbalance:1000$ Freemargin:1000$ StopLoss: 100pips How can i determine the lotsize
Backtest sometimes slow sometimes fast. Why?
Hi, i use tickdata with tickstory. i have noticed that with the same ea when i backtest with every tick it is running fast. And after a while its running very slow. Than i download again new data and use same ea. Backtest is fast and after 3-4 of the same tests it will go slow. So i noticed that
How to stop trading for rest of the day if xxx profit reach
Hi, can someone help how to to teach an ea when xxx amount of open orders reached than do not open trades for the rest of the day and start on next day. I am counting my openorders right now like this double Open_Orders_Profit() { double openordersprofit = 0 ; RefreshRates(); int Total=
MQL Message System
It will be great if the message system will be updated a bit to handle better messages. I know messages will mark as unread but when i am on mobile phone and look message they are unmarked. When i want to answer back on pc i have to check all not answered. So the idea is why not implement a button
Reading from a file of Webspace
How can i solve this. If i want to sell ea via Website and give the opportunity to Download a Demo. How can it will BE solved that ea didnt work after 30 days. I think of a txt or csv file online where i can set the demo end time.l and the ea will Check before start of the date is out of Date
Protect Code by time
Hi, Did someone have Code snippet to make ea as Demo.. For now i use Hard coded expire time . But i need an idea how to make Demo like.. I put ea for download on server.. Than ea can work for 10 das for Example. So i dont want to change everytime the expire date.. Must be something with servertime
Questions about the lot library from codebase
Hello, i have a question. I found that lot calculation in https://www.mql5.com/en/code/viewcode/7749/105580/lot_lib.mqh Can someone explain me this? lot = _AccountBalance * 0.01 / iATR ( Symbol (), Period (), 20 , 1 ) / lotcost * 4 * Point ; is this the same as i tried to use in my ea? int margin=(