MADTrader

Rene's trading Expert Advisors
Post Reply
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

MAD-EA

Post by milanese »

neocount » Tue Mar 15, 2016 2:45 pm wrote:
jasonckb » Tue Mar 15, 2016 9:36 am wrote:
what's the function of the reset. I just can't figure it out in the description.
From what I have seen it just sets everything over again. I use atr for my settings so it just recalculates and it works well to pick up the pairs it missed. I think he put it in because there were still some bugs since he says "APTM will recalculate for all positions the SL& TP, too some little perfections inside the APTM"

Edit: Tommaso just uploaded a new version today. It might be fixed with the new version.
there are no such bugs in the actual APTM version, this button does what it says, it delets old SL/TP values and resets to new calculated values at exp, if you changed the settings, or you want new ATR values use, but please discuss APTM issues in the appropriate thread

Cheers :)

Tommaso
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

MAD-EA

Post by renexxxx »

neocount » Tue Mar 15, 2016 10:49 pm wrote:So this is driving me crazy. I CANNOT get the time settings to work on my VPS. Any ideas at all from the group here? I use NY time and I have the EA set to turn on 30m after Frankfurt open (3:30) and turn off 2 hours after New York open(10:00). Broker time that is 9 to 18:00.
Here we go again, and you know that posts about the time are strictly prohibited on SHF?

Let's get down to basics. Empty4 is only aware of two different times (1) The server (broker) time (This time is obtained using the TimeCurrent() function) and the (2) The local PC time (This time is obtained using the TimeLocal() function).

On a VPS, the TimeLocal() returns the time of the VPS instance you are running. It has of course no clue of your local time, wherever you may be living. In the screen image you attached to your post, it was 7:54AM on the 15th of March, 2016. How do I know this: just look at the bottom right of the screen ... that's the local PC (or VPS) time.

In the documentation of MAD-EA, it is specified that MAD-EA uses the Local PC time (i.e. the TimeLocal() time) to compare times against the given "Trading Times" input parameter. Why? Why did I not choose to use TimeCurrent()? I could have, but this was a choice and Steve's EAs are using the Local PC time as well, so I thought that for consistency I do the same. This, however, requires a little attention on your part, as you need to change the Trading Times parameter if you transfer a set-file that has been running on your local PC to your VPS, as now you have to deal with the VPS Local times.

Finally, to comment on
neocount » Tue Mar 15, 2016 10:49 pm wrote:As you can see only 2 of the trades fall into the time period.

the following:
The times listed by Empty4 under the 'Time' column of the Trade-tab and Account History-tab, are in server (broker) time. So, in order to see whether these times fall in the given time period, you will need to convert the broker times to local times (or convert local times to broker times).

Believe me, the time filter code in MAD-EA is correct. If you think it is not, most likely you have given it incorrect input.
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

MAD-EA

Post by renexxxx »

919gilead » Tue Mar 15, 2016 11:06 pm wrote: I believe your timing is wrong - it should be +15:30,-10:00 but I stand to be corrected and Rene should confirm.
No, +15:30,-10:00 is not a correct setting. The manual says that trading times need to be entered in ascending order. 15:30 is later than 10:00, so the EA discards this setting and assumes 24-hour trading. You would find a message in your Experts-tab, informing you about this decision.

If you want to start trading at 15:30 in the afternoon (local time, or VPS time) and stop trading the next day at 10:00 in the morning you will need to enter: "+0:00,-10:00,+15:30,-24:00", meaning:
start trading at midnight, stop trading at 10:00am, start trading at 15:30 (in the afternoon) and stop trading at midnight (all local PC or VPS times).
User avatar
919gilead
Trader
Posts: 307
Joined: Thu Aug 23, 2012 2:29 pm
Location: Canada

MAD-EA

Post by 919gilead »

renexxxx » Tue Mar 15, 2016 5:36 pm wrote: No, +15:30,-10:00 is not a correct setting. The manual says that trading times need to be entered in ascending order. 15:30 is later than 10:00, so the EA discards this setting and assumes 24-hour trading. You would find a message in your Experts-tab, informing you about this decision.

If you want to start trading at 15:30 in the afternoon (local time, or VPS time) and stop trading the next day at 10:00 in the morning you will need to enter: "+0:00,-10:00,+15:30,-24:00", meaning:
start trading at midnight, stop trading at 10:00am, start trading at 15:30 (in the afternoon) and stop trading at midnight (all local PC or VPS times).
Thanks Captain, I knew something was not right with my setting and it's very clear now. :hi:
Low Risk Low Stress High Reward High Probability Trades
neocount
Trader
Posts: 93
Joined: Tue Jan 20, 2015 3:15 pm

MAD-EA

Post by neocount »

renexxxx » Tue Mar 15, 2016 7:14 pm wrote:
Here we go again, and you know that posts about the time are strictly prohibited on SHF?

Let's get down to basics. Empty4 is only aware of two different times (1) The server (broker) time (This time is obtained using the TimeCurrent() function) and the (2) The local PC time (This time is obtained using the TimeLocal() function).

On a VPS, the TimeLocal() returns the time of the VPS instance you are running. It has of course no clue of your local time, wherever you may be living. In the screen image you attached to your post, it was 7:54AM on the 15th of March, 2016. How do I know this: just look at the bottom right of the screen ... that's the local PC (or VPS) time.

In the documentation of MAD-EA, it is specified that MAD-EA uses the Local PC time (i.e. the TimeLocal() time) to compare times against the given "Trading Times" input parameter. Why? Why did I not choose to use TimeCurrent()? I could have, but this was a choice and Steve's EAs are using the Local PC time as well, so I thought that for consistency I do the same. This, however, requires a little attention on your part, as you need to change the Trading Times parameter if you transfer a set-file that has been running on your local PC to your VPS, as now you have to deal with the VPS Local times.

Finally, to comment on

the following:
The times listed by Empty4 under the 'Time' column of the Trade-tab and Account History-tab, are in server (broker) time. So, in order to see whether these times fall in the given time period, you will need to convert the broker times to local times (or convert local times to broker times).

Believe me, the time filter code in MAD-EA is correct. If you think it is not, most likely you have given it incorrect input.
I didn't realize this was a banned subject so I apologize for bringing it up.
The fault is mine in that I need to post a lot more details since you have no clue that I am not just one of the noobs without a brain. Everything you mentioned was already done and correct. VPS is set to my local time, hence why it is included in the screenshot, Broker times are converted properly. I think about my posts quite a bit before I post them and make sure they are correct.
I just thought with as many people who use VPS's to test EA's on here that there is a solution I don't know and it is trivial really because I can turn the EA's off and on manually.
Instead I wasted your time Rene and I apologize again.
jasonckb
Trader
Posts: 187
Joined: Sat Aug 25, 2012 9:45 am

MAD-EA

Post by jasonckb »

2nd basket in 3 days.....
2016-03-16_20-07-16.jpg
You do not have the required permissions to view the files attached to this post.
Happy Trading

Jason
neocount
Trader
Posts: 93
Joined: Tue Jan 20, 2015 3:15 pm

MAD-EA

Post by neocount »

jasonckb » Wed Mar 16, 2016 7:14 am wrote:2nd basket in 3 days.....
This is still Georges set file right Jason? With look back 240?
User avatar
Wavegarrick
Trader
Posts: 1172
Joined: Sun Dec 30, 2012 11:21 am
Location: South Africa

MAD-EA

Post by Wavegarrick »

Hi Guys

Just be careful with Fomc, Janet Yellen and her rate hike in another 2 hours or so.....fairly good results can look pretty awful after that ;)
szfxtrader
Trader
Posts: 377
Joined: Sun Feb 10, 2013 9:36 am

MAD-EA

Post by szfxtrader »

Wavegarrick » Wed Mar 16, 2016 3:51 pm wrote:Hi Guys

Just be careful with Fomc, Janet Yellen and her rate hike in another 2 hours or so.....fairly good results can look pretty awful after that ;)
: ) Wise man.
jasonckb
Trader
Posts: 187
Joined: Sat Aug 25, 2012 9:45 am

MAD-EA

Post by jasonckb »

After 1 night, from red to green again. Still suing the original setfile of MA37.
2016-03-17_8-20-03.jpg
You do not have the required permissions to view the files attached to this post.
Happy Trading

Jason
Post Reply

Return to “Auto-trading EA's and EA monitors”