Ctrader position not opened (differences between live and back testing even though live has a 'better' spread)

Created at 09 Dec 2024, 20:43
J.

J.Lo

Joined 23.10.2021

Ctrader position not opened (differences between live and back testing even though live has a 'better' spread)
09 Dec 2024, 20:43


A position is created successfully in backtesting but not under the live conditions. 

suggestions anyone?

anyone know where i can find the detailed ctrader logs?

Notes:

  • The Spread is smaller (better) in ‘live' 
  • The entry price is exactly the same
  • Their is enough margin to cover the trade (log say the order was successfully created but a position was never opened)

 

 


@J.Lo
Replies

firemyst
09 Dec 2024, 23:44

You can find the logs in the “algo” tab:

I'm not sure how you expect anyone to help you otherwise when you haven't posted any screen captures showing your back-testing settings, or describing what your back-testing settings are.

you should also post your code logic so people can see what may be going on.


@firemyst

J.Lo
14 Dec 2024, 01:38

You would expect a mathematical formula to be the same (Idempotency or return a null) between live and back testing

Indicators.WellesWilderSmoothing(_indi_EMA200_data, 200);


@J.Lo

J.Lo
18 Dec 2024, 22:45 ( Updated at: 19 Dec 2024, 22:13 )

Upon further analysis - 

I removed the faulty indicator and built my own. My stats are now identical between back testing and live

What i have noticed is that back testing will “fill” everything while live does not and it often misses take profit targets 🤷 *mystery solved. (so always take your back testing results with a big grain of salt)

 

 


@J.Lo