Phoenix - Development+Suggestions - MQ4 in Post#1 - page 26

 
 

The issue with SL based calculations is that they don't properly take into account the changes in the account size margin. I like your formula, but I'd suggest that using FreeMargin instead of Balance is useful if multiple currencies are used or multiple trades per currency are used. When the lotsize is based on Balance, multiple trades can exceed the amount of Available Margin. FreeMargin based lotsizes decrease the lots based when multiple trades are pending.

Balance may work better for everyone who isn't using multiple trades, and the values are safe enough to not overload the FreeMargin even with all currencies trading. The way it is written is safe to use it the way I abuse it. Adding in lotsize the way you describe is a good idea, there was another MM calculation technique that based the percentages in real percentage points regardless of trading currency assuming USD as the base account currency. The two combined would be great. I'm putting my development time to spare (which has been very sparse lately but opening up soon) into Phoenix 6 development.

I'm glad the guides were useful for you.

 

Daraknor recover.

 

MM Strategy - Bug Fix

The Decrease Factor Code in the MM Strategy Routine, doesn't work. I have post code https://c.forex-tsd.com/smiles/nerd.png an update to Phoenix_5_7_2a and Phoenix_5_7_2_W. Please click the link for details. If people like it we could make it official. No settings changes required. I would update the Ultimate Guide.

 

anybody else ???

does anybody else have the same...

as usual, 3 trades open together. then without reason, two trades close. no errors, no spikes, just like that.

v5.7.0, default settings, mode3 on EURJPY 15M on FXDD demo account

All times are GMT-7

On February 18th

15:01:26 Phoenix_EA_v5_7_0 EURJPY,M15: open #6826676 sell 0.10 EURJPY at 157.0900 sl: 157.8900 tp: 156.5300 ok

15:01:26 Phoenix_EA_v5_7_0 EURJPY,M15: open #6826678 sell 0.10 EURJPY at 157.0900 sl: 157.8900 tp: 156.3900 ok

15:01:49 Phoenix_EA_v5_7_0 EURJPY,M15: open #6826679 sell 0.10 EURJPY at 157.0900 sl: 157.8900 tp: 156.2500 ok

Today February 19th

18:25:35 Phoenix_EA_v5_7_0 EURJPY,M15: close #6826679 sell 0.10 EURJPY at 157.0900 sl: 157.8900 tp: 156.2500 at price 157.6500

18:27:34 Phoenix_EA_v5_7_0 EURJPY,M15: close #6826678 sell 0.10 EURJPY at 157.0900 sl: 157.8900 tp: 156.3900 at price 157.6600

trade #6826676 (Mode3_FirstTrade) is still open. as you can see on the chart, the closing price was never near the SL price.

any ideas?

AZBOfin

Files:
 

THANK YOU pcontour !!!

(as i always say... RTFM)

AZBOfin

 

FAQ - Mode 3 - Why did trades 2 & 3 suddenly close.

AZBOfin:

as usual, 3 trades open together. then without reason, two trades close. no errors, no spikes, just like that.

v5.7.0, default settings, mode3 on EURJPY 15M on FXDD demo account

any ideas?

AZBOfin

Here is the code snippet from v5.7.0, preferred settings for EURJPY

if((Symbol() == "EURJPY") || (Symbol() == "EURJPYm"))

{

Mode2_OpenTrade_2 = 18;

Mode2_TakeProfit = 70;

Mode2_StopLoss = 30;

Mode3_CloseTrade2_3 = 55;

The last line in bold means, if trade one is 55 points in loss, close trade2 and 3.

Close 157.6500

Open 157.0900

DIFF. 000.56

If you found this post valuable, you may also find this other post valuable as well.

 

How to programming:

In some cases of my tests, the trades are in the winning range an than turned in to loss. So I want to add a SL in the profit range from 10 PIPS if the trades are 50 PIPS in profit, for example.

My opinion: Better a little profit than a loss !

1. I can handle it manuel but I want it...

2. ...automated

But my programming skills are very poor.

Have anyone an idea ?

THX

CashTiger

 
CashTiger:
In some cases of my tests, the trades are in the winning range an than turned in to loss. So I want to add a SL in the profit range from 10 PIPS if the trades are 50 PIPS in profit, for example.

My opinion: Better a little profit than a loss !

1. I can handle it manuel but I want it...

2. ...automated

But my programming skills are very poor.

Have anyone an idea ?

THX

CashTiger

This feature will soon be available in version 6 as it is not working correctly at the moment. Read all Phoenix threads regularly and you will learn a lot about the way this EA works and the community building around it.