Webinars

Free Registeration for:

Monday session
Wednesday session
Thursday session

ForeXecutor


Free ForeXecutor Demo Account

Using the “SetBarColor” Command PDF Print E-mail
Using the “SetBarColor” Command
If you hate spending hour after hour looking for candles that meet the set up requirements you are looking for consider using the “SetBarColor” command in 4XCharts to identify them for you. Once you know what you are looking for you can identify the bars very easily.
A good example of this would be the hammer candle stick formation. Once you set your parameters to identify what you are looking for, put it into a script and let it do the searching for you. Here is an example of a script that identifies hammer candles.

if Open[0] > Close[0] and
High[0] - Open[0] < Point(5) and
(Close[0] - Low[0]) > ((Open[0] - Close[0])*2) then
SetBarColor "Black"
endif

if CLose[0] > Open[0] and
High[0] - Close[0] < Point(5) and
(Open[0] - Low[0]) > ((Close[0] - Open[0])*2) then
SetBarColor "Black"
Endif

You can copy and paste this script into your Organizer and it will identify all the bars that meet the requirements set out above. In the screen shot below you can see that the candles that fit the requirements are now black and all you have to do is scroll back to find them. In addition, any new candles that fit will also be black.
forex chart
Comments
Add New Search
+/-
Write comment
Name:
Email:
 
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
 
Please input the anti-spam code that you can read in the image.

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."