NexusFi: Find Your Edge


Home Menu

 





PowerLanguage & EasyLanguage. How to get the platform name with code?


Discussion in EasyLanguage Programming

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




 
Search this Thread

PowerLanguage & EasyLanguage. How to get the platform name with code?

  #1 (permalink)
futurenow
Earth planet
 
Posts: 50 since Feb 2017
Thanks Given: 40
Thanks Received: 13

Hello

How would it be possible to get the platform name or any kind of distinctive name reference with PowerLanguage and EasyLanguage? to in that way run some different syntax depending on the platform is running, because PowerLanguage and EasyLanguage syntax are not always exactly the same.

I've seen you can get the app id with aiApplicationType but it would not be the solution for this situation.

Thank you

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
MC PL editor upgrade
MultiCharts
Trade idea based off three indicators.
Traders Hideout
How to apply profiles
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
45 thanks
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Bigger Wins or Fewer Losses?
24 thanks
Tao te Trade: way of the WLD
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,435 since Apr 2013
Thanks Given: 482
Thanks Received: 1,628

futurenow,

I am not aware of such a reserved word. For simplicity and for maximizing the capabilities of the languages it might make sense to simply keep the codes separated.

Regards,

ABCTG


futurenow View Post
Hello

How would it be possible to get the platform name or any kind of distinctive name reference with PowerLanguage and EasyLanguage? to in that way run some different syntax depending on the platform is running, because PowerLanguage and EasyLanguage syntax are not always exactly the same.

I've seen you can get the app id with aiApplicationType but it would not be the solution for this situation.

Thank you


Follow me on Twitter Reply With Quote
  #3 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,664 since Jul 2012
Thanks Given: 1,892
Thanks Received: 7,359



ABCTG View Post
futurenow,

I am not aware of such a reserved word. For simplicity and for maximizing the capabilities of the languages it might make sense to simply keep the codes separated.

Regards,

ABCTG

And you should know @futurenow that if anyone here would know this, it is @ABCTG - one of the most knowledgeable Easy Language programmer here, in my opinion.

Follow me on Twitter Reply With Quote
Thanked by:
  #4 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,435 since Apr 2013
Thanks Given: 482
Thanks Received: 1,628

Thank you for the kind words @kevinkdog.

@futurenow, even if you would come up with a way to identify the platform (which you probably could do by finding one reserved word that only exists in one platform and for which you would have to create a function in the other platform, so you could distinguish by the return values) the obstacle that you will not be able to overcome is the compiler in the platforms. If your code contains reserved words that the compiler does not recognize it will throw an error and you will not be able to compile your code. This is what would happen in both platforms, if you have code that is exclusive to the other platform only.

Regards,

ABCTG


kevinkdog View Post
And you should know @futurenow that if anyone here would know this, it is @ABCTG - one of the most knowledgeable Easy Language programmer here, in my opinion.


Follow me on Twitter Reply With Quote
Thanked by:




Last Updated on April 19, 2024


© 2024 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 - Privacy Policy - Downloads - Top
no new posts