Skip to content






Library Name Documentation


Library Name Documentation

Usage Example

Here is an example of how to use the library:

//@version=5
// © RayPulse
// © DudeOwns
import dudeowns/NinjaView/1 as ninjaView

strategy("Simplified NinjaView Strategy", overlay=true)

// Placeholder for account and ticker details
account = input("Sim101", "Account")
ticker = input("ES 03-24", "Ticker")
qty = input(1, "Quantity")

// Define your trading conditions here
smaLength = input(20, "SMA Length")
sma = ta.sma(close, smaLength)

longCondition = ta.crossover(close, sma) // Condition to enter a long position
exitCondition = ta.crossunder(close, sma) // Condition to exit all positions


// Alerts using NinjaView library functions
if (longCondition)
    alert(ninjaView.SimpleMarket("buy", account, ticker, qty, "Entering Long Position"), alert.freq_once_per_bar)

if (exitCondition)
    alert(ninjaView.CloseAllPositions("sell", account, ticker, "Exiting All Positions"), alert.freq_once_per_bar)

// Visualization
plot(sma, color=color.blue, title="Simple Moving Average")

myLibraryFunction

This function does XYZ.

// Define the function
//@version=4
myLibraryFunction(arg1, arg2) =>
    arg1 + arg2

Disclaimer for Ninja-View.com:

Ninja-View.com specializes in providing tools for forward testing trading strategies on a paper basis.

  • 2024 NinjaView. All rights reserved.
  • [NinjaView reserves the right to enforce its intellectual property rights to the fullest extent of the law.]
  • General Risk Disclosure: Trading, even on a simulation basis, involves risks and is not suitable for all participants.
  • Hypothetical Performance Disclosure: Forward testing results are hypothetical and do not guarantee future performance.
  • Testimonial Disclosure: Testimonials may not be indicative of all user experiences.
  • Live Trade Room Disclosure: Discussions and content are for educational purposes only.
  • Independent Entity Disclosure: NinjaView is an independent entity and is not representative of, nor endorsed by, NinjaTrader. The purpose of linking to NinjaTrader is purely promotional. NinjaTrader neither represents nor has any affiliation with NinjaView.

Users are responsible for understanding and complying with any relevant regulations, including those of the NFA or CFTC.

© 2024 NinjaView. All rights reserved.