Help with paintbar - should be an easy one! - EasyLanguage Programming | futures io social day trading
futures io futures trading


Help with paintbar - should be an easy one!
Updated: Views / Replies:894 / 4
Created: by tozwp 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
 

Help with paintbar - should be an easy one!

  #1 (permalink)
Trading Apprentice
Milwaukee WI/US
 
Futures Experience: Intermediate
Platform: Multicharts, Tradestation
Favorite Futures: TF
 
Posts: 7 since Feb 2012
Thanks: 2 given, 1 received

Help with paintbar - should be an easy one!

Never worked with paintbars before and am still new to programming. In Multicharts I am trying to paint/color the bars of a 24 hour chart that aren't during regular session hours a different color. I've tried this but nothing happens:
Inputs:
starttime(1516),endtime(829);
IfCurrentTime>starttimeandCurrentTime<endtimethen
PlotPaintBar(High,Low,Open,Close,"",Red)

I'm sure I'm doing something simple wrong but I don't have a clue! Thanks!

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
near Paris, France
 
Futures Experience: Beginner
Platform: -
Favorite Futures: -
 
Nicolas11's Avatar
 
Posts: 1,070 since Aug 2011
Thanks: 2,232 given, 1,729 received


Hi,

I see several problems:
- your code does not respect MultiCharts syntax, it does not compile
- your start time is after your end time
- CurrentTime refers to the time of the computer whereas you should refer to the time of the bar (Time).

The following code works on my computer:
 
Code
Variables:
    StartTime    ( 829 ),
    EndTime    ( 1516 );
    
If Time > StartTime AND Time < EndTime then
    PlotPaintBar(High, Low, Open, Close, "", Red);
Nicolas

Reply With Quote
The following 3 users say Thank You to Nicolas11 for this post:
 
  #4 (permalink)
Trading Apprentice
Milwaukee WI/US
 
Futures Experience: Intermediate
Platform: Multicharts, Tradestation
Favorite Futures: TF
 
Posts: 7 since Feb 2012
Thanks: 2 given, 1 received

Thanks Nicolas. This sort of works but now it paints the regular session instead of the after hours session. Maybe I need to have it change the bar color from 1516 to 2400 and then again from 0 to 829? I'll try that. Thanks for your help.


Nicolas11 View Post
Hi,

I see several problems:
- your code does not respect MultiCharts syntax, it does not compile
- your start time is after your end time
- CurrentTime refers to the time of the computer whereas you should refer to the time of the bar (Time).

The following code works on my computer:
 
Code
Variables:
    StartTime    ( 829 ),
    EndTime    ( 1516 );
 
If Time > StartTime AND Time < EndTime then
    PlotPaintBar(High, Low, Open, Close, "", Red);
Nicolas


Reply With Quote
 
  #5 (permalink)
Elite Member
near Paris, France
 
Futures Experience: Beginner
Platform: -
Favorite Futures: -
 
Nicolas11's Avatar
 
Posts: 1,070 since Aug 2011
Thanks: 2,232 given, 1,729 received

My mistake. I read your first message too quickly.

Try:
If Time < StartTime OR Time > EndTime

Reply With Quote

Reply



futures io > > > > > Help with paintbar - should be an easy one!

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
PaintBar Factory ntsst3 Trading Reviews and Vendors 74 July 30th, 2015 01:55 PM
Help with paintbar code. bfreefalling NinjaTrader Programming 2 April 28th, 2011 10:54 AM
easy language ..not easy... Serger EasyLanguage Programming 4 April 26th, 2011 04:42 PM
LA Times: "Foreign currency trading is easy — an easy way to lose money" shodson News and Current Events 7 April 4th, 2011 10:20 AM
New Paintbar 4 Shortterm wh NinjaTrader Programming 2 July 3rd, 2009 05:04 AM


All times are GMT -4. The time now is 08:37 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-12 in 0.09 seconds with 19 queries on phoenix via your IP 54.90.207.75