Giter VIP home page Giter VIP logo

Comments (6)

MicroTrendsTom avatar MicroTrendsTom commented on July 20, 2024

The samples are provided only to show how to code with the engine.
In the samples the position is hard coded to 4 and the exits are hard coded to 4 in the basic samples

I can't see why replay mode would change any of that - as it is hard coded - unless If there were anomalies under fast play back the samples do not attempt to navigate or fix that.

Trade/Testing Modes

  1. Under demo/live/sim use a self correcting cycle of the trade engine if anomalies occur.
  2. Backtest and replay share the same code cycles and do not fix anomalies - in backtest there should be none

Soak/Unit Testing
Focused on realtime trading. For replay there was a simple test to see it worked in replay only same for backtest.
So maybe you uncovered fast market anomalies which the system does not attempt to fix in replay or something else quirky

Diagnosis - steps to replicate.

  1. Instrument Dataseries, days back/date range, playback speed
  2. which strategy and its settings in play,
  3. Any Screenshots, Logs, trace etc

from ninjatrader8.

Sidlercom avatar Sidlercom commented on July 20, 2024

I hope this helps

NinjaScript Ausgabe 27.01.2021 13_28.txt

Screenshot_4

Screenshot_1

from ninjatrader8.

admintiger avatar admintiger commented on July 20, 2024

@MicroTrendsTom I can confirm that the wrong order sizes for stop-loss & profit-targets are submitted exactly as reported by @Sidlercom. It is not a fast market anomaly. It happens exactly the same regardless of market price rate-of-change or market replay speed. Even though those order sizes do seem to be hard-coded to 4 contracts, orders totaling 8 contracts each are submitted.

from ninjatrader8.

MicroTrendsTom avatar MicroTrendsTom commented on July 20, 2024

@MicroTrendsTom I can confirm that the wrong order sizes for stop-loss & profit-targets are submitted exactly as reported by @Sidlercom. It is not a fast market anomaly. It happens exactly the same regardless of market price rate-of-change or market replay speed. Even though those order sizes do seem to be hard-coded to 4 contracts, orders totaling 8 contracts each are submitted.

ok ty will have to investigate this and resolve.
I am due to wheel back to this in fact to use it for a Backtester/Strategy NT8 version of AFT http://www.algofuturestrader.com so i will definitely test and fix as soon as i can get on to that task list.

What Instrument. time series were you using?
Any particular settings/time series etc

from ninjatrader8.

admintiger avatar admintiger commented on July 20, 2024

ES 03-21 8-Renko initially. However, the same thing happens with any instrument, bar-type or time series. It will be easy to reproduce the problem.

from ninjatrader8.

MicroTrendsTom avatar MicroTrendsTom commented on July 20, 2024

image
removed a double call to place stoploss by means of workflow change

from ninjatrader8.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.