Hello,

I am testing a simple strategy using Point and Figures special bars for on an Oanda demo account and I have two issues. I hope someone can help me to solve it.

XAU/USD (TICKS), Zorro 2.444
Bar period 1 hour (avg 146 min)
Trade period 2022-02-22..2022-02-23
Spread 25.4 pips (roll -0.02/-0.03)
Contracts per lot 1.0


1) The time stamps of the trades are wrong

My trades happen at each special bar which have a variable time of few minutes (based on a fixed price movement range actually) but each trade show as if they happen at a full hour time stamps


[Tue 22-02-22 19:00] 94304 +15.61 8/1 (1900.00)
[XAU/USD::L06156] Reverse 20@1900.92: +15.69 at 19:00:00
[XAU/USD::S06160] Short 20@1900.90 Risk 33 at 19:00:00

[Tue 22-02-22 20:00] 94314 +10.80 9/1 (1901.00)
[XAU/USD::S06160] Reverse 20@1900.06: +10.86 at 20:00:00
[XAU/USD::L06164] Long 20@1900.06 Risk 33 at 20:00:00

[Tue 22-02-22 21:00] 94332 +17.63 10/1 (1900.00)
[XAU/USD::L06164] Reverse 20@1901.27: +17.72 at 21:00:00
[XAU/USD::S06168] Short 20@1901.27 Risk 33 at 21:00:00


And it goes on and on each time with 1 hours steps whatever the real time of the trade is.

My computer time is synchronized with the Oanda server (UTC).

Any idea how to correct this?


2) MyTMF wtih reverse at stop doesnt work

I am also testing the TMF suggested into the manual to reverse a trade when a stop is hit :

int ReverseAtStop()
{
if(TradeIsStop) {

if(TradeIsShort)
enterLong(ReverseAtStop);
else
enterShort(ReverseAtStop);
}
return 16;
}


However I am getting the following errors, for instance on a short trade stopped where I would like to reverse it to a long trade:

[Tue 22-02-22 01:00] 98711 +14.88 6/3 (1899.00)
[XAU/USD::L01499] Reverse 20@1900.07: +14.95 at 01:00:00
[XAU/USD::S01503] Short 20@1900.07 Risk 33 at 01:00:00
!position closed by reversal
Warning 075 (XAU/USD::L) - can't open 20@1902 Stop 2.3250 at 18:30:04
!already closed - 1503

[XAU/USD::S01503] Stop 20@1901.80: -36.18 at 01:00:00
(XAU/USD::L) Skipped (Max = 1)

Any idea why it doesn't work?


Thank you all in advance for your support !