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 567 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?
Iran Airspace Contract Surges to 33.5% as Project Freedo …
Prediction Markets & Event Contracts
Trump Media to sell instant access to market-moving soci …
Traders Hideout
$4.5M Floods Russia Nuclear Contract in 24 Hours -- Krem …
Prediction Markets & Event Contracts
June 15 Peace Odds Surge From 3.6% to 12.25% After Trump …
Prediction Markets & Event Contracts
Khamenei Vetoes Uranium Transfer as Peace Odds Surge to …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
16 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
CME Expands 24/7 Trading to WTI Crude Oil and Gold -- We …
1 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