NexusFi: Find Your Edge


Home Menu

 





MultiCharts EL question: How to do a bit operation on a #?


Discussion in MultiCharts

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




 
Search this Thread
  #1 (permalink)
 
GoSlow's Avatar
 GoSlow 
Tracy, California, United Stat
 
Experience: Intermediate
Platform: Various
Trading: EUR/USD
Posts: 19 since Dec 2010
Thanks Given: 49
Thanks Received: 7

Multicharts EasyLanguage: How might one XOR a number or do another bit operation, without writing a DLL fn? Tyvm.


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
$4.5M Floods Russia Nuclear Contract in 24 Hours -- Krem …
Prediction Markets & Event Contracts
Iran Talks Final Stages -- Two VLCCs Exit Hormuz, Record …
Traders Hideout
Penalties in Budapest, Peace Deadline in Tehran: Arsenal …
Prediction Markets & Event Contracts
April Jobs Beat Flips Fed Hike Odds Past 52% for First T …
Traders Hideout
Bookmap Global Plus Lifetime + Lifetime Addons For Sale
Platforms and Indicators
 
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
2 thanks
CME Expands 24/7 Trading to WTI Crude Oil and Gold -- We …
1 thanks
30 Sessions
1 thanks
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643


GpSlow,
in my opinion you can't do that the elegant way, but need to do it manually i.e. checking for the conditions or numbers.
For example you have two conditions and want to make sure they differ. If you have plenty conditions it will probably get messy.
 
Code
Condition3 = Condition1 and Condition2; //Condition3 becomes true if both your conditions are true

if (Condition1 or Condition2) and Condition3 = false then... //this is what I would understand as XOR for both conditions 1 and 2
Hope this helps,
ABCTG

P.S.: I just saw that "xor" is a reserved word in PL editor, so you might not even have to use the above. I haven't checked it, though.


GoSlow View Post
Multicharts EasyLanguage: How might one XOR a number or do another bit operation, without writing a DLL fn? Tyvm.


Follow me on X Reply With Quote
  #4 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

XOR seems to work fine at least in MultiCharts64 Version 8.8 Beta 2 (Build 8070), it is just not documented.

Regards,
ABCTG


Follow me on X Reply With Quote
Thanked by:
  #5 (permalink)
 
GoSlow's Avatar
 GoSlow 
Tracy, California, United Stat
 
Experience: Intermediate
Platform: Various
Trading: EUR/USD
Posts: 19 since Dec 2010
Thanks Given: 49
Thanks Received: 7


ABCTG View Post
XOR seems to work fine at least in MultiCharts64 Version 8.8 Beta 2 (Build 8070), it is just not documented.

Regards,
ABCTG

Thank you for the feedback and the idea. I haven't been able to get XOR to work in a user-defined function in the build you mention. No matter; this has to be the all-time simple task for a DLL, if that's what it takes.


Started this thread Reply With Quote




Last Updated on November 10, 2013


© 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