NexusFi: Find Your Edge


Home Menu

 





Is there a function or reserve word for a strat to know if automation is turned on?


Discussion in MultiCharts

Updated
    1. trending_up 139 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 
Sinatra Fan's Avatar
 Sinatra Fan 
Orlando FL
 
Experience: Intermediate
Platform: MultiCharts, Ninja
Trading: Emini ES
Posts: 95 since May 2019
Thanks Given: 8
Thanks Received: 11

I have some code in my strategy that calculates a pace that is should be at based on the number of signals it generates. Problem I'm having is that if I turn on automation, if there were any trade signals on the chart prior to it firing off the first trade in automation, the strat will have this crazy base line of what it thinks the account should be at and then tries to make it up by calculating a high amount to buy or sellshort. I would like the strat to be able to know that when it's not placing live trades, it doesn't continue to calculate that pace.

Is there a function or reserve word that would help me with this issue?


SOLVED.... looks like I found it. GetAppInfo(aiRealTimeCalc)

Looks like that only identifies when you are in real time at the end of the chart and new candles are forming.


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Feb & Mar24 New Ag Micros & New Solana Crypto Fu …
Traders Hideout
Re-entries in pullback setups
Traders Hideout
Tech-Savvy Trader Seeking Collaboration with Trading Pla …
Emini and Emicro Index
Ninja Trader Web version
NinjaTrader
Sierra chart Trading system
Sierra Chart
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Machine Learning Journal
47 thanks
NexusFi site changelog and issues/problem reporting
7 thanks
Demark Indicator
5 thanks
Daytrading ES & NQ
3 thanks
Is the WH trying to engineer a recession? This Wall Stre …
2 thanks
  #2 (permalink)
 
Sinatra Fan's Avatar
 Sinatra Fan 
Orlando FL
 
Experience: Intermediate
Platform: MultiCharts, Ninja
Trading: Emini ES
Posts: 95 since May 2019
Thanks Given: 8
Thanks Received: 11

Well, the problem still exists.

Does anyone have a solution to this?

UPDATE: SOLUTION: apparently GetAppInfo(aiStrategyAuto) is the ticket.

According to the PL Keyword Reference:

aiStrategyAuto - specifies return of a numerical value, indicating whether the calling application is using Automated Trade Execution GetAppInfo will return a value of 1 only if the calling application is using Automated Trade Execution, and a value of 0 in all other cases.


Started this thread Reply With Quote




Last Updated on February 25, 2025


© 2025 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 - Downloads - Top
no new posts