MouseClickShiftPressed - MultiCharts | futures io social day trading
futures io futures trading

Updated: Views / Replies:78 / 1
Created: by olobay Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Thread Tools Search this Thread


  #1 (permalink)
Trading Experience: Intermediate
Platform: MultiCharts
Broker/Data: IB Canada/Rithmic
Favorite Futures: CL
Posts: 313 since Jul 2011
Thanks: 327 given, 396 received



I created an indicator using the MouseClickShiftPressed reserved word in MultiCharts and it works great. But there is one thing I would like it to do that I can't figure out how to code. if I am clicking off a high, I want a subtraction to be done and if I am clicking off a low, I want an addition to be done in my formula. How can I program it so that when I click, MC knows that I want a high or low? I have left most of the math out of the formula. Step4 is what I would like to change to an addition if I click on a low or a subtraction if I click on a high. Thank you.

Inputs: Add(60), Chart_Length(2), iMultiplier(1), iSquare(2), TL_Colour(cyan), Txt_Colour(cyan);

[ProcessMouseEvents = true];
[RecoverDrawings = false];

switch (getappinfo(aicalcreason)) begin
	case CalcReason_MouseLClick : if MouseClickShiftPressed then begin
		var : recalcpersist iPrice(0), 
		recalcpersist iBar1(0),
		recalcpersist iBar2(0),
		recalcpersist dt1(0), 
		recalcpersist dt2(0),
		recalcpersist dt3(0),
		recalcpersist Step1(0),
		recalcpersist Step2(0),
		recalcpersist Step3(0),
		recalcpersist Step4(0),
		recalcpersist Step5(0),
		recalcpersist Step6(0);	
			if 0 = iBar1 then begin
				iBar1 = MouseClickDateTime;
				dt1 = MouseClickBarNumber;
			if 0 = iBar2 then begin
				iBar2 = MouseClickDateTime;
				dt2 = MouseClickBarNumber;
			if 0 = iPrice then begin
				iPrice = MouseClickDateTime;
				dt3 = MouseClickPrice;
		until (False);
		if 0 <> iPrice and 0 <> iBar1 and 0 <> iBar2 then begin
		Step1 = ------------------------
		Step2 = ------------------------
		Step3 = ------------------------
		Step4 = Step3 + Step2;
		Step5 = ------------------------
		Step6 = ------------------------
		draw_hor_line(Step6, iPrice, TL_Colour, Txt_Colour,  "");		
			iBar1 = 0;
			iBar2 = 0;
			iPrice = 0;


Reply With Quote
  #2 (permalink)
Hamburg Germany
Trading Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
Posts: 2,102 since Apr 2013
Thanks: 377 given, 1,346 received


you could use MouseClickPrice and check if the click is at the lower or lower and do the addition or if the click is at the high or higher do a subtraction.
You could also use MouseClickShiftPressed to trigger one logic and MouseClickCtrlPressed to trigger another.



Follow me on Twitter Visit my Facebook Reply With Quote
The following user says Thank You to ABCTG for this post:


futures io > > > > MouseClickShiftPressed

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

futures io is celebrating 10-years w/ over $18,000 in prizes!

Right now

$250 Amazon Gift Cards with our "Thanks Contest" challenge!

Right now

Show us your trading desks and win $1,400 in prizes w/Earn2Trade


All times are GMT -4. The time now is 12:23 AM. (this page content is cached, log in for real-time version)

Copyright © 2019 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432,
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.
no new posts