a small help in afl rectangle programming.... - AmiBroker | futures io social day trading
futures io futures trading


a small help in afl rectangle programming....
Updated: Views / Replies:911 / 4
Created: by mady72 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
 

a small help in afl rectangle programming....

  #1 (permalink)
Trading Apprentice
Ludhiana + India
 
Futures Experience: Advanced
Platform: Amibroker, Metastock,etc
Favorite Futures: Nifty, Banknifty,Crude,USDINR
 
Posts: 9 since Oct 2015
Thanks: 2 given, 0 received

a small help in afl rectangle programming....

I wish to create a rectangle box on my chart in AMIBROKER which changes color according to time i.e from 9:40 to 10:00am its color remain green and after that it changes to blue.

GfxSelectSolidBrush( colorBlue );//for rectangle color

x = 1050;
x2 = x-180;
y = 130;
GfxRectangle(x, y - 70, x2, y);//for displaying rectangle on chart

Also if rectangle box could move up and down i.e 9:40 to 10:00am value of y should be equal to 90 and after that it becomes 130 again.

I dont know if i m asking something stupid... But if it is possible then plz help..

Reply With Quote
 
  #2 (permalink)
Trading Apprentice
Belo Horizonte, MG/Brazil
 
Futures Experience: Advanced
Platform: AmiBroker
Favorite Futures: ES
 
Posts: 11 since Mar 2015
Thanks: 0 given, 12 received

In fact, that is easy.

I wonder why you did not get an answer so far.

You will have to use NOW().

Now(4) return the current time in TIMENUM() format.
I also can't post links yet.

So:

if( now(4) >= 094000 and now(4) <= 100000)
{
Ret_color = colorGreen;
y = 90
}
else
{
Ret_color = colorBlue;
y = 130
}

GfxSelectSolidBrush( Ret_Color );//for rectangle color

x=1050
x2 = x-180;

GfxRectangle(x, y - 70, x2, y);//for displaying rectangle on chart


Last edited by JFDerzi; March 27th, 2016 at 01:12 PM.
Reply With Quote
The following user says Thank You to JFDerzi for this post:
 
  #3 (permalink)
Trading Apprentice
Belo Horizonte, MG/Brazil
 
Futures Experience: Advanced
Platform: AmiBroker
Favorite Futures: ES
 
Posts: 11 since Mar 2015
Thanks: 0 given, 12 received


I just remembered, I leaned a lot from these two examples.

wisestocktrader.com/indicators/3709-button-control-panel]Download Button control panel For Amibroker (AFL)

amibroker.org/userkb/2008/03/06/introduction-to-real-time-control-panels/]AmiBroker Users? Knowledge Base » Introduction to Real-Time Control-Panels


(I still can't post links, newbie limitations).

Reply With Quote
The following user says Thank You to JFDerzi for this post:
 
  #4 (permalink)
Trading Apprentice
Ludhiana + India
 
Futures Experience: Advanced
Platform: Amibroker, Metastock,etc
Favorite Futures: Nifty, Banknifty,Crude,USDINR
 
Posts: 9 since Oct 2015
Thanks: 2 given, 0 received

Thank u for d reply

Thanx for d help.I have been waiting for it from so long. I m a newbie to Amibroker, can do basic programing but i was not able to do this one, but after ur help it should work.... I will put it in my afl and would let u knw how it performed. Thank u so very much..

Mady.....




JFDerzi View Post
In fact, that is easy.

I wonder why you did not get an answer so far.

You will have to use NOW().

Now(4) return the current time in TIMENUM() format.
I also can't post links yet.

So:

if( now(4) >= 094000 and now(4) <= 100000)
{
Ret_color = colorGreen;
y = 90
}
else
{
Ret_color = colorBlue;
y = 130
}

GfxSelectSolidBrush( Ret_Color );//for rectangle color

x=1050
x2 = x-180;

GfxRectangle(x, y - 70, x2, y);//for displaying rectangle on chart


Reply With Quote
 
  #5 (permalink)
Trading Apprentice
Ludhiana + India
 
Futures Experience: Advanced
Platform: Amibroker, Metastock,etc
Favorite Futures: Nifty, Banknifty,Crude,USDINR
 
Posts: 9 since Oct 2015
Thanks: 2 given, 0 received

Thanx Again

I will look into d formula's and d amibroker article... Thanx again...


JFDerzi View Post
I just remembered, I leaned a lot from these two examples.

wisestocktrader.com/indicators/3709-button-control-panel]Download Button control panel For Amibroker (AFL)

amibroker.org/userkb/2008/03/06/introduction-to-real-time-control-panels/]AmiBroker Users? Knowledge Base » Introduction to Real-Time Control-Panels


(I still can't post links, newbie limitations).


Reply With Quote

Reply



futures io > > > > a small help in afl rectangle programming....

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
Extend a Rectangle in NT gsmaster NinjaTrader Programming 14 Yesterday 06:21 PM
Vertical Rectangle on Right of Chart mmaker NinjaTrader Programming 3 December 7th, 2014 04:46 AM
Accessing Rectangle Bounds within a strategy Xav1029 NinjaTrader Programming 7 January 18th, 2013 04:38 PM
Dax - moving from small loss/breakeven to small profit/profit Disciple Elite Trading Journals 67 April 30th, 2012 07:59 AM
Creating a Rectangle with an anchor zeller4 NinjaTrader Programming 4 March 12th, 2010 01:04 AM


All times are GMT -4. The time now is 10:46 PM.

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-16 in 0.08 seconds with 19 queries on phoenix via your IP 54.227.51.103