Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AI developed indicator needs some fixing

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    AI developed indicator needs some fixing

    Hi Guys,

    I need some help, please.



    I have got an indicator called "WilliamsVixFix" which I would like to integrate into "Predator" (into a 3rd party Chart Trader tool for NinjaTrader 8).

    Predator X Order Entry / Reversal Predator - TradeSaber

    The indicator is really, really good, A Gentleman worked on it for several hours with the help of an AI.

    The indicator filters out the choppy market and also shows the reversals and pullbacks...

    Moreover shows where you could potentially get an entry as the instrument starts to run ... and finally, potentially shows the exit as well when the market gets messy again ...

    I tested this indicator, it works well on MGC ninzarenko 16.4 charts ... if the Indicator drops bellow the level of 0.06 ... that give an entry signal .. .. while the indicator stays under this level

    The current trade can run ... and when the indicator goes again above the 0.06 level then that will give an exit signal ...

    But to be honest, I saw this indicator is working on the following instruments too: MES, MYM MCL ...

    Obviously, You need to have some other filters like ADX indicator to get the right momentum to open the trades ... but it just works ...

    One of my friends tried to help me, but he current version of the indicator has some errors.

    The Current entry signal for the Predator: "VixFxEntrySignal" ... and the exit signal is : "VixFxExitSignal"

    My goal is that the indicator will produce the entry and exit signals towards the Predator.

    So that the Predator can pick up the entry and exit signal.

    Can someone help me, please to figure out what the errors are in the code?

    V5: ... the error in the code .. the Predator can't take signal from WFXv5 .... WilliamsVixFix ...
    V2: ... an earlier version of the indicator. This should work well ... if you put it on ... However this version hasn't got any further coding to get any entry and exit signals for the Predator ...

    I'm not a programmer ... I'm new to NinjaTrader as well ...

    All your help and support is highly appreciated in advance.

    Thank you.
    Laszlo

    Attached Files

    #2
    Hello Laszlo,

    Below I am providing a link to a support article with helpful resources on getting started with C# and NinjaScript.


    This thread will remain open for any community members that would like to correct your code on your behalf.

    You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like a list of affiliate consultants who would be happy to create this script or any others at your request or provide one on one educational services.

    Through email or on the forum we are happy to answer any specific questions you may have about NinjaScript if you decide to code this yourself. We are also happy to assist with finding resources in our help guide as well as simple examples, and we are happy to assist with guiding you through the debugging process to assist you with understanding unexpected behavior.


    To understand why the script is behaving as it is, such as placing orders or not placing orders or drawing objects when expected, it is necessary to add prints to the script that print the values used for the logic of the script to understand how the script is evaluating.

    In the strategy add prints (outside of any conditions) that print the date time of the bar and all values compared in every condition that triggers the action.
    The prints should include the time of the bar and should print all values from all variables and all hard coded values in all conditions that must evaluate as true for this action to be triggered. It is very important to include a text label for each value and for each comparison operator in the print to understand what is being compared in the condition sets.
    The debugging print output should clearly show what the condition is, what time the conditions are being compared, all values being compared, and how they are being compared.

    Prints will appear in the NinjaScript Output window (New > NinjaScript Output window).

    Further, enable TraceOrders which will let us know if any orders are being ignored and not being submitted when the condition to place the orders is evaluating as true.
    Join the official NinjaScript Developer Community for comprehensive resources, documentation, and community support. Build custom indicators and automated strategies for the NinjaTrader platforms with our extensive guides and APIs.


    After enabling TraceOrders remove the instance of the strategy from the Configured list in the Strategies window and add a new instance of the strategy from the Available list.

    Last, print the order.ToString() at the top of the OnOrderUpdate() override, as this will show us when orders become working and are being filled, and print the GetCurrentAsk() and GetCurrentBid() in OnOrderUpdate() as well so we can see what the market price is at the time of a fill.
    Join the official NinjaScript Developer Community for comprehensive resources, documentation, and community support. Build custom indicators and automated strategies for the NinjaTrader platforms with our extensive guides and APIs.

    Join the official NinjaScript Developer Community for comprehensive resources, documentation, and community support. Build custom indicators and automated strategies for the NinjaTrader platforms with our extensive guides and APIs.

    Join the official NinjaScript Developer Community for comprehensive resources, documentation, and community support. Build custom indicators and automated strategies for the NinjaTrader platforms with our extensive guides and APIs.


    I am happy to assist you with analyzing the output from the output window.

    Run or backtest the script and when the output from the output window appears save this by right-clicking the output window and selecting Save As... -> give the output file a name and save -> then attach the output text file to your reply.

    Below is a link to a support article that demonstrates using informative prints to understand behavior and includes a link to a video recorded using the Strategy Builder to add prints.


    Let me know the date and time the behavior occurred or when you are expecting the behavior to occur.

    Please let me know if I may further assist with analyzing the output or if you need any assistance creating a print or enabling TraceOrders.
    Attached Files
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    557 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    545 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X