Hi Roberto – not to hang out the teacher (most will be obvious for you) :
A Pips/Points based solution is *not* allowed to use CountOfPosition (the number of contracts involved). This is because your whole “regime” will be based on points. Commonly this regime is applied throughout, where profit and exit choices etc. are based on points. This is then not related to the number of contracts in the open position.
If MyProfitPoints > 10 then
// Exit
endif
In the end this is so because indeed PositionPerf is based on a percentage – see the documentation. Btw in itself I find this hard to all grasp, especially if the understanding is required when for example converting to Money. For fun you could indeed try Commission as a profound example, which is of course normally not in order for IG, so never mind for most people. Still, would you focus on needing to earn at least the commission (otherwise you can’t make profit), then the system of Spread comes down to the very same : you would need the Spread in points.
And so the Money regime may come more handy because you don’t need to deal with these conversions. Well, that is what one would think, because it depends;
When you want to earn 10 points because 10 points is equal to USD 500, then make that 11 and the profit you will make (before going out) will be 550. This is sufficiently easy to work with. But when you trade with the microstructure of the instrument, you will really need the TickSize of say 0,25 (the minimum step in points) or else you really won’t know what you are tuning. Thus, you would not want to do something like
If MyProfitMoney > 12.50 then // This implies more than one tick
// Exit
endif
because it implies that > 15 would also depict logic – which is not true because the next “step” will be > 25 (2 ticks). And thus will this be the more convenient setup :
If MyProfitPoints > 0.5 then // Points/Pips. 1 Point = USD 50.
// Exit
endif
Thus any Parameter involved (Optimisation) will increase e.g. a take profit level by means of steps of 1 (tick). And not by means of some random amount of money.
In the end in a self-respecting system both regimes will be used, I think because working with Points (Pips) throughout is far more convenient and decent (portable to other instruments with the proper parameters). This, while Money is just required because of the cost element which is the most crucial to about any system, *if* only a somewhat higher frequency of trades occur per time unit (like 20+ per day) – and the lower the profit per trade, the more crucial/impacting the cost element is (the cost element is fixed per number of contracts involved).