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

Multi Pair Swing Trader,,
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=1302
Page 16 of 17
Author:  MrLong [ Tue Jan 22, 2013 8:49 am ]
Post subject:  Re: Multi Pair Swing Trader,,

quanttraderjoe wrote:Hello Andy n Fmuir,

i tried loading it in a profile and that worked. the display loaded n some trades were taken but the weird thing is no sl/tp value is placed in adr mode. i set adr stop to true. no error msg as well.

Fmuir, does your adr mode place sl/tp values?
Hello,

The EA takes care of stop and takeprofit, they are not entered.

Andy
Author:  quanttraderjoe [ Tue Jan 22, 2013 9:44 am ]
Post subject:  Re: Multi Pair Swing Trader,,

Andy,

ok great! yeah i just saw the ea close a trade without the sl/tp. thanks again! i'm testing m5 trend following with adr mode true.
Author:  fmuir [ Tue Jan 22, 2013 5:50 pm ]
Post subject:  Re: Multi Pair Swing Trader,,

quanttraderjoe wrote: ...
Fmuir, does your adr mode place sl/tp values?
@ quanttraderjoe
Haven't had any trades open from this EA. Sorry.

-Frank
Author:  fmuir [ Tue Jan 22, 2013 6:02 pm ]
Post subject:  Re: Multi Pair Swing Trader,,

MrLong wrote: ...
Buttons, make sure when dragging a button, only that button is highlighted.
Andy
@ MrLong
Could you please elaborate? All I was trying to do was close a couple of trades that were currently open on my platform. Clicking on the 'Close All Trades' and/or 'Close All Loss Trades' did nothing, no matter how many times I clicked on those buttons. Clicking on the 'Close All Profit Trades' several different times, only caused the message box asking for confirmation to open two different times. I wasn't interested in moving the buttons?!

Regards,
-Frank
Author:  MrLong [ Tue Jan 22, 2013 9:12 pm ]
Post subject:  Re: Multi Pair Swing Trader,,

fmuir wrote:
MrLong wrote: ...
Buttons, make sure when dragging a button, only that button is highlighted.
Andy
@ MrLong
Could you please elaborate? All I was trying to do was close a couple of trades that were currently open on my platform. Clicking on the 'Close All Trades' and/or 'Close All Loss Trades' did nothing, no matter how many times I clicked on those buttons. Clicking on the 'Close All Profit Trades' several different times, only caused the message box asking for confirmation to open two different times. I wasn't interested in moving the buttons?!

Regards,
-Frank
Hi Frank,

When you double click on the button and hold the left mouse down, you can drag the button, you will get a confirmation box to do what ever it says on the button.

The trades must have been opened by that specific EA or they will not close.

Hope this helps
Andy
Author:  fmuir [ Tue Jan 22, 2013 9:48 pm ]
Post subject:  Re: Multi Pair Swing Trader,,

MrLong wrote: Hi Frank,

When you double click on the button and hold the left mouse down, you can drag the button, you will get a confirmation box to do what ever it says on the button.

The trades must have been opened by that specific EA or they will not close.

Hope this helps
Andy
It makes perfect sense. The three text objects work as buttons when dragged to another location. It's the first time that I have ever seen text objects used as buttons, therefore the confusion. One thing that I also noticed was that there was a noticable delay before the confirmation boxes appeared on the screen. If I watched it a bit closer, I'd probably notice that the delay was tied to the arrival of ticks.

Thanks,
-Frank
Author:  MrLong [ Tue Jan 22, 2013 10:34 pm ]
Post subject:  Re: Multi Pair Swing Trader,,

fmuir wrote:
MrLong wrote: Hi Frank,

When you double click on the button and hold the left mouse down, you can drag the button, you will get a confirmation box to do what ever it says on the button.

The trades must have been opened by that specific EA or they will not close.

Hope this helps
Andy
It makes perfect sense. The three text objects work as buttons when dragged to another location. It's the first time that I have ever seen text objects used as buttons, therefore the confusion. One thing that I also noticed was that there was a noticable delay before the confirmation boxes appeared on the screen. If I watched it a bit closer, I'd probably notice that the delay was tied to the arrival of ticks.

Thanks,
-Frank
Hi Frank,

Thats correct, I don't know of any other way of doing this, the box will wait for a tick.

Best Regards

Andy
Author:  fmuir [ Fri Jan 25, 2013 5:22 am ]
Post subject:  Re: Multi Pair Swing Trader,,

Hello MrLong (Andy),

You have code in MultiPairSwingTrader that defines y-coordinates for buttons as follows:

Code: Select all

int           CloseAllButtonY       = 150;
int           CloseAllProfitButtonY = 200;
int           CloseAllLossButtonY   = 250;

int           TICKButtonY = 375;
int           PTPButtonY  = 400;
int           SLOTButtonY = 425;

int           TPButtonY         = 500;
int           SLButtonY         = 525;
int           LockedInButtonY   = 550;
int           OpenTradesButtonY = 575;
int           PipsButtonY       = 600;
int           CashButtonY       = 625;
Some, but not all, buttons appear on the screen at shown:
Multi Pair Swing Trader.PNG
Is this an oversight or did you just leave that code in, but not use it? I noticed that you had modified your code (which is appreciated!) to calculate the screen width and height in the initalize function in an attempt to make the screen display to work with different monitor sizes.

Regards,
-Frank
Author:  MrLong [ Fri Jan 25, 2013 8:39 am ]
Post subject:  Re: Multi Pair Swing Trader,,

fmuir wrote:Hello MrLong (Andy),

You have code in MultiPairSwingTrader that defines y-coordinates for buttons as follows:

Code: Select all

int           CloseAllButtonY       = 150;
int           CloseAllProfitButtonY = 200;
int           CloseAllLossButtonY   = 250;

int           TICKButtonY = 375;
int           PTPButtonY  = 400;
int           SLOTButtonY = 425;

int           TPButtonY         = 500;
int           SLButtonY         = 525;
int           LockedInButtonY   = 550;
int           OpenTradesButtonY = 575;
int           PipsButtonY       = 600;
int           CashButtonY       = 625;
Some, but not all, buttons appear on the screen at shown:
Multi Pair Swing Trader.PNG
Is this an oversight or did you just leave that code in, but not use it? I noticed that you had modified your code (which is appreciated!) to calculate the screen width and height in the initalize function in an attempt to make the screen display to work with different monitor sizes.

Regards,
-Frank
Hi Frank,

Yes, I forgot to clean up after me, I'll remove the unused code in the next version.

Andy
Author:  fmuir [ Fri Jan 25, 2013 8:53 am ]
Post subject:  Re: Multi Pair Swing Trader,,

MrLong wrote:Hi Frank,

Yes, I forgot to clean up after me, I'll remove the unused code in the next version.

Andy
@ MrLong (Andy),
Thanks for responding. No hurry. I am using verion 1.03b, which I picked up from one of the most recent posts. FYI, if there is a version 1.03a, neither it nor version 1.03b are attached to post 1 of this thread.

Regards,
-Frank
All times are UTC Page 16 of 17