NexusFi: Find Your Edge


Home Menu

 





Trigger event in Strategy from Indicator


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one vantojo with 6 posts (0 thanks)
    2. looks_two sam028 with 3 posts (0 thanks)
    3. looks_3 rleplae with 2 posts (0 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 3,063 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 11 posts
    2. attach_file 1 attachments




 
Search this Thread

Trigger event in Strategy from Indicator

  #11 (permalink)
 vantojo 
Vilcabamba, Ecuador
 
Experience: Intermediate
Platform: Ninja
Trading: NQ, UB
Posts: 204 since Jul 2012

I will study this later, but that is exactly the concept I was looking for...

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC Advanced Simulated Trading.
MultiCharts
Legends Trading: Ask Me Anything (AMA) w/Greg Khojikian CEO
Trading Reviews and Vendors
Zombie Indicator Help
NinjaTrader
What You Know vs How much you know about it
Traders Hideout
MT5 <-> Ninjatrader 8
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Vinny E-Mini & Algobox Review TRADE ROOM
53 thanks
ApexTraderFunding.com experience and review
34 thanks
GFIs1 1 DAX trade per day journal
16 thanks
System Performance Stats Comparison
14 thanks
Spoo-nalysis ES e-mini futures S&P 500
8 thanks
  #12 (permalink)
 vantojo 
Vilcabamba, Ecuador
 
Experience: Intermediate
Platform: Ninja
Trading: NQ, UB
Posts: 204 since Jul 2012

For another use I've been testing the MessageQueue Class and it looks like it may work very well for this use....

https://msdn.microsoft.com/en-us/library/system.messaging.messagequeue%28v=vs.110%29.aspx

The listener would be waiting to Receive() the message object, while apparently multiple other processes could send messages to the same queue.

The queue possibly could be named uniquely based on the instrument...so an auto trader could be listening for a decoupled message from one or more indicators, for example, on an FDAX queue.

The advantage to the MessageQueue, apparently is that it is an integral part of Windows, for the purpose of Inter Process Communication. So, it should be very fast, and be able to queue up multiple messages easily in milliseconds, from different sources (in the case I'm using it for in this test, to queue alert and trace / debugging messages external to the Ninja Output Window).

The messageQueue.Receive() method needs to be in a separate thread inside a continuous loop, because the Receive() locks the thread it is running in. If not its own thread it will freeze lock NT 7.

Also, it looks like this class needs to be referred to System.Messaging.DLL which is found (for NT 7, Net 3.5) in the Framework V2 directory.

Good luck... :-)

Started this thread Reply With Quote




Last Updated on October 17, 2017


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts