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 175 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: 98 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?
New York Stock Exchange to Launch NYSE Texas
Stocks and ETFs
Forex Factory News - Weekly XML Export
Traders Hideout
Circle range trading NQ
Emini and Emicro Index
Support / Resistance indicator
Tradovate
Small Indicator to visually see Nth Bar Close - NT8
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
$TRUMP Crypto coin: Facts, Legality, and Controversies
10 thanks
For DOM based traders. (ES/NQ)
6 thanks
Full-Time ES Trading
5 thanks
My hunt for the Automated Holy Grail
4 thanks
Topsteps combine showing a winning trade as a Loss
3 thanks
  #2 (permalink)
 
Sinatra Fan's Avatar
 Sinatra Fan 
Orlando FL
 
Experience: Intermediate
Platform: MultiCharts, Ninja
Trading: Emini ES
Posts: 98 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


© 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