Swap coasts

Hallo,

Would it be possible to take the daily SWAP coasts into account as additional trading costs in the calculations? Similar to the commissions as $ per LOT which are deducted from profit at the change of the day. This can be very important for many strategies and can very much determine the real success of a strategy. In the example, 1.1 shows profit, but in reality it is not. This contrasts with about $ 1.8 - $ 2 swap coasts and thus the profit is actually a loss. However, this is significant with many strategies found and their assessment as really profitable or not. When calculating and evaluating scalping strategies, this is a disaster and leads to total loss in real trading. Can you maybe add something like that? Maybe at the point in the settings where the coasts commissions are set? Please see my attachments.

Attachments
SWAP Coasts missing.png
(101.09 KiB)
Example.png
(31.14 KiB)
  • Votes +2
  • Project SQ Programming
  • Type Feature
  • Status New
  • Priority Normal

History

s
#1

SuperWutsch

17.05.2020 15:13

Task created

s
#2

SuperWutsch

17.05.2020 15:18
II forgot: the swap coasts have to be set differently for long and short, but that should be logical.
h
#3

hankeys

18.05.2020 08:50
but how you want to setup the swaps? they are changing in times and for every broker they are different
s
#4

SuperWutsch

20.05.2020 20:25

Attachment ME_SWAPS long and short formulas.mq4 added

Attachment SQX ME_Model 125 SWAP Idea.png added

The BrokerServerTime is generally determined by the format recorded in the DataManager when the tick data is downloaded. (GMT / DST)

The time when each broker calculates his swaps can be requested from the broker or read on his website. You can also display the SWAP rates for each symbol on the website of each broker. There you can also see whether the broker specifies the swaps in points or in currency. This makes it easy to fix the settings.

I use € as the account currency so my formulas convert the swaps into €. They may not be perfect and I am not a good coder, but in principle they work. I have attached these to you for a better understanding, which may also help. You can do that better than me, but it is my idea to maybe realize it or at least to take a path in the right direction.


in the appendix calculate my formulas for swap and calculate in my € currency for you for information.


Attention: in my formulas the functions for "..Total_Buy_Size" and so on, but you see what I mean and you can code this self


But please see my picture in attached I have designed there my ideas as best as I can in your SQX background. So you mean easy what I mean.

p
#5

partizanas

03.06.2020 11:57
Voted for this task.
m
#6

Martin

29.08.2020 13:45
Voted for this task.

Votes: +2

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please