StrategyProfit and Fees math

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #213048 quote
    ZeroCafeine
    Participant
    Senior

    Hi Everyone,

    I used the search function but I can’t find an answer to my question which is normally quite simple, at least I hope so

    I would like to use the StrategyProfit function to stop my strategy if my capital falls by 10%, but if I understand correctly from the documentation this function does not take into account fees,

    IF StrategyProfit <  - ((Capital/100)*10) Then
    Quit
    ENDIF

    Is there a simple solution to get the number of entries and exits in order to multiply this number by a spread fix? So I take the opportunity to ask the question: is it possible to know the Spread in real time on Forex for example?

    #213174 quote
    ZeroCafeine
    Participant
    Senior

    I will answer myself when I find a good solution for count the exactly drawdown 😊

    #213186 quote
    Nicolas
    Keymaster
    Master

    If spread is 1.5 pips, then I think you can calculate the fee like this:

    spread = 1.5
    fee = ((spread*pointvalue)*abs(countofposition))/pipsize
    ZeroCafeine thanked this post
    #213187 quote
    ZeroCafeine
    Participant
    Senior

    tks you, I will come back with a concentrate of all your answers on several posts, I keep your answer warm

    knew you If it’s possible to retrieve the value of the fees in real time, exemple for Forex pair ?

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

StrategyProfit and Fees math


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by ZeroCafeine
2 years, 10 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 04/09/2023
Status: Active
Attachments: No files
Logo Logo
Loading...