1 registered members (AbrahamR),
717
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Wrong Trade Status on HTML page for Trade profits
#487489
05/16/23 06:08
05/16/23 06:08
|
Joined: May 2023
Posts: 23 Hamburg, Germany
Martin_HH
OP
Newbie
|
OP
Newbie
Joined: May 2023
Posts: 23
Hamburg, Germany
|
Probably this is a recent bug, but I just noticed it during live trading. The HTML status page and the trades.csv file are displaying incorrect profit results: 1. A short trade with a win of 387 EUR was shown as a loss of -387 EUR. 2. A long trade with a loss was displayed as a win.
I did not find any documentation of this bug. Any confirmation?
BR
Martin
Last edited by Martin_HH; 05/16/23 06:11.
|
|
|
Re: Wrong Trade Status on HTML page for Trade profits
[Re: Martin_HH]
#487493
05/17/23 13:12
05/17/23 13:12
|
Joined: May 2023
Posts: 23 Hamburg, Germany
Martin_HH
OP
Newbie
|
OP
Newbie
Joined: May 2023
Posts: 23
Hamburg, Germany
|
The trades.csv and the ...real.log were also wrong. Example long trade: buy 1.25304 sell: 1.25288 (175.000 units) Broker shows: -25,75 EUR Zorro: +42.66 EUR
I saw another error which I decribed above with a short trade. It seems the error does not occur always. Today a losing Long trade was shown correctly. I will have a further look in the next days and give a statement, when I have updates:
Thanks for your response.
Last edited by Martin_HH; 05/17/23 14:49.
|
|
|
Re: Wrong Trade Status on HTML page for Trade profits
[Re: jcl]
#487505
05/23/23 08:02
05/23/23 08:02
|
Joined: May 2023
Posts: 23 Hamburg, Germany
Martin_HH
OP
Newbie
|
OP
Newbie
Joined: May 2023
Posts: 23
Hamburg, Germany
|
Danke jcl As usual the problem may be caused from another area. I just recognised that there is a link to my use of the trailing functionalities (not TMF). I coded: Trail = Stop = optimize(1,0.5,2.2,0.1)*ATR(100); TrailSlope=optimize(25,100,300,25); TrailSpeed=optimize(100,100,300,25);
It seems to work only in Long trades correctly. In the manual the trailing is described with "raising" the SL. Is this right... only in Long trades? Or do I have to use the TMF system instead ?? But I am using two loops (Markets and different strategies). Does it work?
Today, I was with a short position in profit, but I saw that the SL and Trail field, shown in the html file, are much to low. I stopped the position manually. Actually I got a win of 517 Euros. The html has shown -527 Euros. The status off Zorros shows : -527 EUR, but equity of 50519 EUR (519 EUR comes from the broker)
Sell: 1.243410 Buy: 1.241310 -527 EUR is shown in the demotrades.csv. Of course the FXCM broker shows a win as I stated.
Is there a side effect of my trailing use at short positions? Or do I have a general problem? Additional info, I have a FXCM EU account and therefore it shoud be not a NFA flag issue, right?
Last edited by Martin_HH; 05/23/23 11:56.
|
|
|
Re: Wrong Trade Status on HTML page for Trade profits
[Re: Martin_HH]
#487508
05/23/23 15:19
05/23/23 15:19
|
Joined: May 2023
Posts: 23 Hamburg, Germany
Martin_HH
OP
Newbie
|
OP
Newbie
Joined: May 2023
Posts: 23
Hamburg, Germany
|
Well, I checked the manual again and of course short positions should be possible as well, when I set Trail and Stop variable. Therefore, I still have two issues during short trades. My algorithm for entries are synchron. 1. Trailing does not work for me as it should 2. Live status does not work as it should = Backtesting seems to work correctly..... This seems not logical....
I do further tests and try to figure out why I have this behaviour. Log files. FXCM has no comission, only spread, therefore there is no rocket science behind......
Maybe the error is in front of the screen....?
Last edited by Martin_HH; 05/23/23 15:24.
|
|
|
Re: Wrong Trade Status on HTML page for Trade profits
[Re: Martin_HH]
#487512
05/24/23 09:08
05/24/23 09:08
|
Joined: May 2023
Posts: 23 Hamburg, Germany
Martin_HH
OP
Newbie
|
OP
Newbie
Joined: May 2023
Posts: 23
Hamburg, Germany
|
I understood now the trailing functionality correctly with the double distance of the stop and trail value. I will further test, but it will be ok. There is still the issue with the wrong html status. This I cannot explain, but I will continue to search:
Last edited by Martin_HH; 05/24/23 09:09.
|
|
|
Re: Wrong Trade Status on HTML page for Trade profits
[Re: Martin_HH]
#487514
05/24/23 16:26
05/24/23 16:26
|
Joined: May 2023
Posts: 23 Hamburg, Germany
Martin_HH
OP
Newbie
|
OP
Newbie
Joined: May 2023
Posts: 23
Hamburg, Germany
|
Danke. Yes, FXCM has spreads (they call it markups in pips) and rollover. Commission is really zero. I just downloaded via API the AssetFix.csv (asset.csv) and this was confirmed. No commission. And also in the Broker reports no commision, which is the case for many neobrokers novadays as well. I will check the values of the trades based on this updated AssetFix file in the next days. For me it was strange that the issue was found for short positions only. The strange thing was that the profit was almost the expected value, but only with an opposite sign.On the other hand it has shown a gain, even when I had a real loss??? I have no explanation for this so far. I will do as you have recommended. Calculate the .log of the trade data from start to the end. I let you know the result of my investigation.
Last edited by Martin_HH; 05/24/23 16:29.
|
|
|
|