NexusFi: Find Your Edge


Home Menu

 





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


Discussion in MultiCharts

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




 
Search this Thread

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

  #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?
Better Renko Gaps
The Elite Circle
Trade idea based off three indicators.
Traders Hideout
ZombieSqueeze
Platforms and Indicators
Exit Strategy
NinjaTrader
Increase in trading performance by 75%
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
33 thanks
Tao te Trade: way of the WLD
24 thanks
My NQ Trading Journal
14 thanks
GFIs1 1 DAX trade per day journal
11 thanks
HumbleTraders next chapter
11 thanks
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627


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 Twitter Reply With Quote
  #4 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627

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 Twitter 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


© 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