MultiCharts Coding Help - MultiCharts | futures io social day trading
futures io futures trading


MultiCharts Coding Help
Updated: Views / Replies:461 / 2
Created: by vitrader 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 90,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

Reply
 
Thread Tools Search this Thread
 

MultiCharts Coding Help

  #1 (permalink)
Elite Member
New York, New York, United States
 
Futures Experience: Beginner
Platform: TOS
Favorite Futures: Options
 
vitrader's Avatar
 
Posts: 53 since Jul 2015
Thanks: 13 given, 6 received

MultiCharts Coding Help

Below is my code for Multicharts:
--
inputs: UpColor(Green), DnColor(Red), BarWidth(1) , CompBars(5) , start.time(0930) , end.time(1600);

vars: haClose(0), haOpen(0), color(0);

if BarNumber = 1 then
begin
haOpen = open;
haClose = (O+H+L+C)/4;
end;

if BarNumber > 1 then
begin
haClose = (O+H+L+C)/4;
haOpen = (haOpen [1] + haClose [1])/2 ;
end;
{ ................................................................................ }
if haClose > haOpen then color = UpColor
else color = DnColor;

for value1 = 1 to CompBars
begin
if haOpen <= MaxList(haOpen[value1],haClose[value1]) and
haOpen >= MinList(haOpen[value1],haClose[value1]) and
haClose <= MaxList(haOpen[value1],haClose[value1]) and
haClose >= MinList(haOpen[value1],haClose[value1]) then
color = color[value1];
end;
{ ................................................................................ }

{plotPB(haOpen,haClose,"heikin-ashi",color);
plotPB(High,Low,"heikin-ashi",color);
SetPlotWidth(1,BarWidth);
SetPlotColor(1,color);
end;}
{ ................................................................................ }

//initial beginning
If time >= start.time and time <= end.time and MarketPosition = 0 then begin

//long entry
if haClose > haOpen then begin
Buy 100 shares next bar at Market;
If MarketPosition = 1 and haClose < haOpen then begin
Sell ("close") 100 shares next bar at Market;
End;
end;

//short entry
if haClose < haOpen then begin
Sellshort ("enter short") 100 shares next bar at Market;
if MarketPosition = -1 and haClose > haOpen then begin
buytocover ("close") 100 shares next bar at Market;
end;
end;
End;
--
For some reason, the code isn't executing orders despite it being compiled successfully. If anyone can offer any help, it would be greatly appreciated.

Thank you.

Reply With Quote
 
  #2 (permalink)
Elite Member
Colorado
 
Futures Experience: Advanced
Platform: MultiCharts
Broker/Data: IB & Iqfeed
Favorite Futures: ES , CL
 
sptrader's Avatar
 
Posts: 533 since Apr 2010
Thanks: 1,080 given, 668 received

You have MarketPosition = 0 as a condition , so once you open a position, it will never close or take another position..

Reply With Quote
The following user says Thank You to sptrader for this post:
 
  #3 (permalink)
Elite Member
New York, New York, United States
 
Futures Experience: Beginner
Platform: TOS
Favorite Futures: Options
 
vitrader's Avatar
 
Posts: 53 since Jul 2015
Thanks: 13 given, 6 received



sptrader View Post
You have MarketPosition = 0 as a condition , so once you open a position, it will never close or take another position..

Thank you.

Reply With Quote

Reply



futures io > > > > MultiCharts Coding Help

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert code from multicharts(ELD) to Multicharts.NET rmiller863 MultiCharts 4 May 21st, 2016 10:16 AM
RFQ for coding strategy in Multicharts samsam1231 MultiCharts 1 November 20th, 2015 05:47 PM
MultiCharts Webinar: Peter Campbell - Systematic Trading with MultiCharts MultiCharts MultiCharts 25 August 31st, 2015 09:32 PM
How to reference a chart's indicators when coding in MultiCharts? jesse514 MultiCharts 3 April 10th, 2014 05:42 AM
MultiCharts and MultiCharts .NET: where are indicators more performant? GoSlow MultiCharts 3 February 3rd, 2014 02:33 AM


All times are GMT -4. The time now is 08:07 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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
Page generated 2017-12-17 in 0.08 seconds with 19 queries on phoenix via your IP 54.145.16.43