NexusFi: Find Your Edge


Home Menu

 





Setting INPUT boundaries in MC powerlanguage


Discussion in MultiCharts

Updated
    1. trending_up 1,964 views
    2. thumb_up 0 thanks given
    3. group 2 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'm developing a new strat in powerlanguage for MC (not .net). I have two questions:

1) Are there keywords that I can use to provide tips or boundaries/limits for an input variable? For example: Can I have a tip that explains what this input variable is for and the range of values for that variable?

2) Is there a way to prevent the user from entering in a value not permitted or outside of the limits intended for that variable? For example, If entering zero causes the program to error out due to division by zero, then I would want that value not to be entered or allowed.

If yes to these, can you help me out with them. Thanks


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Cboe Launches BITVX Bitcoin Volatility Index and Unveils …
Prediction Markets & Event Contracts
$12M Ceasefire Contract Goes Disputed as Bandar Abbas St …
Prediction Markets & Event Contracts
Prediction Markets Expiry Day: Trump Eyes War Exit, $230 …
Prediction Markets & Event Contracts
The Great Rotation -- Small Caps Crushing Tech as Sectio …
Traders Hideout
Election Sunday Resolves: Peru Heads to Runoff at 42pct, …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
23 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
2026 Fire Horse
5 thanks
  #2 (permalink)
 
syswizard's Avatar
 syswizard 
Philadelphia PA
 
Experience: Advanced
Platform: Multicharts
Broker: Ironbeam, Rithmic
Trading: Emini ES / NQ / CL / RTY / YM / BTC
Posts: 344 since Jan 2019
Thanks Given: 20
Thanks Received: 146

Well you can't provide tips for the input, but you could invoke the windows messagebox function to have a pop-up window show when there are invalid inputs.
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messagebox
You will have to declare the USER32.DLL in the Powerlanguage code:
DefineDLLFunc: "User32.dll
Good luck.


Reply With Quote




Last Updated on April 3, 2021


© 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