lostbridge
lostbridge
Friends

Add friends via their profile or user search and you will be able to see if they are online

lostbridge
Added topic EA was not triggered by main() after weekend. Strange, Need help
The issue: The start() function in my EA was not triggered to be run after weekend when the market was open and the ticks kept come in.  Background: I have run this EA for a few years so that I am pretty sure the problem is
lostbridge
Added topic how to return different numbers based on a string
I want to return a number based on the content of a string. int aaa=3; int bbb=5; string mypick="aaa"; For example: if mypick="aaa", then I want return the value of aaa (aaa=3 in my example, so that the returned value should 3) if
lostbridge
Added topic Need help on connection to brokers
I am having problems to connect to any brokers at work after they said they had updated their infrastructure. I tried two different laptops to connect brokers but none of them worked. When I am at home and use home internet, there is no any problem
lostbridge
Added topic Time goes back?? Very strange. Need HELP
I wrote an EA and NEVER allow two orders for any pairs. However, I figured out that two orders were created for EURUSD. I checked the EA log as follows (Simplied version) 14:59:57 daily fitting v7 EURUSD,M5: Reset counters, the system is
lostbridge
Added topic Need help to understand one line in the highest rated EA
   for ( int i = 0 ; i < MACDLevel ; i ++)      {        if ( iMACD ( Symbol (), MathPow ( 2 , i) , 2 , 4 , 1 , PRICE_CLOSE , MODE_MAIN, 0 ) <
lostbridge
Added topic Data accuracy, which one is better?
I just found it out today. I am talking about the daily chart as an example. Data acquisition method 1: Just use the mouse to drag on the chart and data would be downloaded automatically and Never download data from history data center. Method 2. Go
lostbridge
Added topic A question of using refreshrate() to refresh data on mutiple pairs
I am writing an EA to work with multiple pairs at same time. I attached the EA to EURUSD and the EA would do math on other 5 pairs as well. The problem I found was that: the history data in the other 5 pairs did not refresh, except EURUSD, because
lostbridge
Added topic How to make sure that int start() will run at specific computer time.
I am thinking of close all open orders at 23:59:00 on Friday but it may not happen when there is no new tick coming in. I have searched the documetation but did not find anything close. Please help me. Thanks
lostbridge
Added topic Need help on Error 138
I am using version 4.0 Build 419. I found an error 138 in my EA backtest in the strategy tester and then I tried to simplify the code to see what was wrong. But finally, it was simplifed to the following code. int start() {
lostbridge
Registered at MQL5.community