December 28, 2021

5 1

What if : Profit Factor MA Trading

What if snippet  Profit Factor MA Trading  calculates the profit factor of the strategy and when profit factor is lower than threshold  you have set, the strategy does not trade. Snippet still calculates the profit factor of the strategy even if the current profit factor is below the threshold. At the moment when the profit factor gets above the threshold we have chosen, the strategy starts trading again.

  • PFPeriod – Period of Profit Factor Calculation
  • PFTreshold – Treshold of Profit Factor


There are two modes you can use

  • PFPeriod= 0 :  The first one is that you calculate the profit factor of the strategy from 2 trades and compare the performance of the strategy with the value you set
  • PFPeriod> 0 :  The second mod calculates the average current profit factor for the last x trades.


How to import custom snippets to SQX:

1 Comment
Newest Most Voted
Inline Feedbacks
View all comments
January 5, 2022 11:57 am

Excellent !!!!!!!!!!!!!!! Thank you !!!!!!