alarm or strategy in ninja for st indicator - NinjaTrader Programming | futures io social day trading
futures io futures trading


alarm or strategy in ninja for st indicator
Updated: Views / Replies:9,347 / 49
Created: by ciardim Attachments:8

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you dont need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 8  
 
Thread Tools Search this Thread
 

alarm or strategy in ninja for st indicator

  #41 (permalink)
Elite Member
Charlotte NC
 
Futures Experience: Advanced
Platform: Charts:Ninja Trader w/IB, execution:TOS
Broker/Data: TOS
Favorite Futures: CL, ES, ZN, ZB, RUT.
 
Posts: 227 since Jul 2009
Thanks: 98 given, 119 received

alarm

red,
Thank you again.

Reply With Quote
 
  #42 (permalink)
Elite Member
Atkinson, NH USA
 
Futures Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker/Data: NinjaTrader Brokerage
Favorite Futures: Futures, CL, ES, ZB
 
NJAMC's Avatar
 
Posts: 1,925 since Dec 2010
Thanks: 2,962 given, 2,294 received


redratsal View Post
Try also this one, I didn't have time to test it, should make a sound 2 ticks before the trend changes. Please report back.

Hi Red,

I am not sure if this is correct in this code:

 
Code
 
if (GetCurrentAsk() == anaSuperTrend(3, 21, 5).StopLine[0] + -2 * TickSize
&& GetCurrentAsk() == anaSuperTrend(3, 21, 5).StopLine[0] + 2 * TickSize)
{
PlaySound(@"C:\Program Files (x86)\NinjaTrader 7\sounds\Alert1.wav");
}
This would only fire if TickSize was equal to 0, and then it would fire every time through the
OnBarUpdate(). It might be an OR rather than AND... I am not sure if there is a spacial bar type, but if you could elaborate, I would appriciate it.
-NJAMC

Reply With Quote
 
  #43 (permalink)
Elite Member
Milan (I)
 
Futures Experience: Advanced
Platform: Ninjatrader
Broker/Data: Kinetick
Favorite Futures: FDAX,6E,CL,YM,NQ,ES
 
redratsal's Avatar
 
Posts: 1,653 since Oct 2010
Thanks: 1,217 given, 2,067 received



NJAMC View Post
Hi Red,

I am not sure if this is correct in this code:

 
Code
 
if (GetCurrentAsk() == anaSuperTrend(3, 21, 5).StopLine[0] + -2 * TickSize
&& GetCurrentAsk() == anaSuperTrend(3, 21, 5).StopLine[0] + 2 * TickSize)
{
PlaySound(@"C:\Program Files (x86)\NinjaTrader 7\sounds\Alert1.wav");
}
This would only fire if TickSize was equal to 0, and then it would fire every time through the
OnBarUpdate(). It might be an OR rather than AND... I am not sure if there is a spacial bar type, but if you could elaborate, I would appriciate it.
-NJAMC


You are correct it is an OR, problem it won't work anyway since getcurrentask will never be equal to anasupertrend, you will have to change the variable type an the plotting would not be correct anymore.

Reply With Quote
 
  #44 (permalink)
Elite Member
Milan (I)
 
Futures Experience: Advanced
Platform: Ninjatrader
Broker/Data: Kinetick
Favorite Futures: FDAX,6E,CL,YM,NQ,ES
 
redratsal's Avatar
 
Posts: 1,653 since Oct 2010
Thanks: 1,217 given, 2,067 received

@ciardim

Hi,

Find attached the indicator anasupertrend modified as requested. The Indy will make a different sound (uptrend,downtrend) if the price will be +/- n ticks from the supertrend. Since I could not match the supertrend value with the market price (different variable types) I had to set the sounds in a tick fork of values (above and below the current price), for example if the trend will change at 1.4253 and ticks are set to 2, the indy will sound between 1.4251 and 1.4255. Basically you want to be advised before the change and that is what the indy does. Beware that in a fast moving market, 2 ticks are too close and the price might not notice the sound therefore I decided to customize the number of ticks before the change of trend. In the indy setup meny under options you can customize the number of ticks before the change of trend. I tested it in the replay mode and it should work correctly.

Attached Files
Register to download File Type: cs anaSuperTrendsound.cs (15.0 KB, 61 views)
Reply With Quote
The following 3 users say Thank You to redratsal for this post:
 
  #45 (permalink)
Membership Temporarily Revoked
us
 
Futures Experience: Intermediate
Platform: nt,ts
 
Posts: 45 since Dec 2010
Thanks: 60 given, 28 received

re

getting a error when I copy it to a indicator. Line 43 MedianMoving average not defined...

Reply With Quote
 
  #46 (permalink)
Elite Member
Milan (I)
 
Futures Experience: Advanced
Platform: Ninjatrader
Broker/Data: Kinetick
Favorite Futures: FDAX,6E,CL,YM,NQ,ES
 
redratsal's Avatar
 
Posts: 1,653 since Oct 2010
Thanks: 1,217 given, 2,067 received


neilzep View Post
getting a error when I copy it to a indicator. Line 43 MedianMoving average not defined...

You need to install the original one, try with the search option

Reply With Quote
 
  #47 (permalink)
Elite Member
Toronto Canada
 
Futures Experience: Intermediate
Platform: ninjatrader
Favorite Futures: es
 
mmaker's Avatar
 
Posts: 353 since Feb 2011
Thanks: 1,169 given, 393 received

anaSuperTrend not serializing


redratsal View Post
@ciardim

Hi,

Find attached the indicator anasupertrend modified .

Sorry for posting this here but I don't know who to contact regarding this indicator.

I upgraded Ninja to ver 7.5 and now when i try to save my workspace i am getting a message that says anaSupertrend could not be serialized.

I also tried to refer to the dataseries and several variables in anaSuperTrend from a strategy and they usually come back as true which is incorrect since the trend cannot be long for 2 months solid. Yet when I print the same info from inside the indicator you can see the values change more frequently (true, false, true....) the way they should leading me to believe it is not serializing properly.

I really do not understand serializing but it sounds like the storing of a dataseries/ variables.

The second symptom is when you try to save the workspace anaSuperTrend does not save but the other 20? indicators on 14 charts do. So every morning I have to re-apply anaSuperTrend to my main chart.

Rebuilding the chart does not solve the problem.

So my question is has anyone else had this problem?

I would like to refer to anaSuperTrend to build a strategy but cannot the way it is working now.

I am looking for a zip file i can modify.

Any help is greatly appreciated.

Reply With Quote
 
  #48 (permalink)
Elite Member
it
 
Futures Experience: Advanced
Platform: mc
 
Posts: 31 since Jun 2010
Thanks: 48 given, 2 received

Red, thank you very much for all
i have a problems, i try to iport strategy and/or indicator in ninja, but ninja telle me error
someone can see my pc with team viewer?
i have two pc, one is ok, other i can not import ninja script
thank you to all


redratsal View Post
@ciardim

Hi,

Find attached the indicator anasupertrend modified as requested. The Indy will make a different sound (uptrend,downtrend) if the price will be +/- n ticks from the supertrend. Since I could not match the supertrend value with the market price (different variable types) I had to set the sounds in a tick fork of values (above and below the current price), for example if the trend will change at 1.4253 and ticks are set to 2, the indy will sound between 1.4251 and 1.4255. Basically you want to be advised before the change and that is what the indy does. Beware that in a fast moving market, 2 ticks are too close and the price might not notice the sound therefore I decided to customize the number of ticks before the change of trend. In the indy setup meny under options you can customize the number of ticks before the change of trend. I tested it in the replay mode and it should work correctly.


Reply With Quote
 
  #49 (permalink)
Elite Member
Milan (I)
 
Futures Experience: Advanced
Platform: Ninjatrader
Broker/Data: Kinetick
Favorite Futures: FDAX,6E,CL,YM,NQ,ES
 
redratsal's Avatar
 
Posts: 1,653 since Oct 2010
Thanks: 1,217 given, 2,067 received


ciardim View Post
Red, thank you very much for all
i have a problems, i try to iport strategy and/or indicator in ninja, but ninja telle me error
someone can see my pc with team viewer?
i have two pc, one is ok, other i can not import ninja script
thank you to all

You need the original anasupertrend on both computers, my supposed conclusion is that in the one where the error is showing the indy is missing.

Reply With Quote
 
  #50 (permalink)
Elite Member
Napa Valley , Ca.
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: Currency Futures
 
trade65's Avatar
 
Posts: 26 since Aug 2011
Thanks: 816 given, 67 received



redratsal View Post
@ciardim

Hi,

Find attached the indicator anasupertrend modified as requested. The Indy will make a different sound (uptrend,downtrend) if the price will be +/- n ticks from the supertrend. Since I could not match the supertrend value with the market price (different variable types) I had to set the sounds in a tick fork of values (above and below the current price), for example if the trend will change at 1.4253 and ticks are set to 2, the indy will sound between 1.4251 and 1.4255. Basically you want to be advised before the change and that is what the indy does. Beware that in a fast moving market, 2 ticks are too close and the price might not notice the sound therefore I decided to customize the number of ticks before the change of trend. In the indy setup meny under options you can customize the number of ticks before the change of trend. I tested it in the replay mode and it should work correctly.


Hi Redratsal,

I recieve the error illustrated in the attached screenshot when i tried to compile your sound alert indicator for anaSupertrend. I do have anaSupertrend installed. Do i need a particuliar version?

Thanks for your help

Sean

Attached Thumbnails
alarm or strategy in ninja for st indicator-anasupertrendsounderror.jpg  
Reply With Quote

Reply



futures io > > > > > alarm or strategy in ninja for st indicator

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ninja Indicator to Ninja Strategy emini_Holy_Grail NinjaTrader Programming 10 March 10th, 2013 12:23 AM
Ninjatrader7 ATM Strategy combine with Strategy Wizard Ninja Script schuster21 NinjaTrader Programming 4 July 4th, 2011 05:39 PM
Ninja Strategy using locked indicator code spinnybobo NinjaTrader Programming 4 May 26th, 2010 04:54 AM
Ninja Strategy multi-timeframe issue/Strategy to indicator nw123 NinjaTrader Programming 2 December 20th, 2009 07:24 PM
DoubleMA Alarm Tonywalker NinjaTrader Programming 0 December 9th, 2009 07:44 AM


All times are GMT -4. The time now is 02:11 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-12-12 in 0.12 seconds with 20 queries on phoenix via your IP 54.163.209.109