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 493 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: 101 since May 2019
Thanks Given: 8
Thanks Received: 12

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?
April Jobs Beat Flips Fed Hike Odds Past 52% for First T …
Traders Hideout
CPI Eve: Fed Hike Odds Hold at 52% for the First Time, I …
Prediction Markets & Event Contracts
Q1 2026 Shatters All Derivatives Volume Records -- CME H …
Traders Hideout
Pakistan Mediator in Tehran as Hormuz Normalization Coll …
Prediction Markets & Event Contracts
CFTC Launches Innovation Task Force for AI Trading Syste …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
21 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
Algo automated / semi-automated trading anyone?
6 thanks
2026 Fire Horse
5 thanks
  #2 (permalink)
 
Sinatra Fan's Avatar
 Sinatra Fan 
Orlando FL
 
Experience: Intermediate
Platform: MultiCharts, Ninja
Trading: Emini ES
Posts: 101 since May 2019
Thanks Given: 8
Thanks Received: 12

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


© 2026 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