stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

MADTrader
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4590
Page 51 of 92
Author:  milanese [ Tue Mar 15, 2016 3:21 pm ]
Post subject:  MAD-EA

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
Author:  renexxxx [ Wed Mar 16, 2016 12:14 am ]
Post subject:  MAD-EA

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.
Author:  renexxxx [ Wed Mar 16, 2016 12:36 am ]
Post subject:  MAD-EA

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).
Author:  919gilead [ Wed Mar 16, 2016 12:50 am ]
Post subject:  MAD-EA

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:
Author:  neocount [ Wed Mar 16, 2016 12:56 am ]
Post subject:  MAD-EA

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.
Author:  jasonckb [ Wed Mar 16, 2016 12:14 pm ]
Post subject:  MAD-EA

2nd basket in 3 days.....
2016-03-16_20-07-16.jpg
Author:  neocount [ Wed Mar 16, 2016 3:31 pm ]
Post subject:  MAD-EA

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?
Author:  Wavegarrick [ Wed Mar 16, 2016 3:51 pm ]
Post subject:  MAD-EA

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 ;)
Author:  szfxtrader [ Wed Mar 16, 2016 4:18 pm ]
Post subject:  MAD-EA

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.
Author:  jasonckb [ Thu Mar 17, 2016 12:22 am ]
Post subject:  MAD-EA

After 1 night, from red to green again. Still suing the original setfile of MA37.
2016-03-17_8-20-03.jpg
All times are UTC Page 51 of 92