[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Re: Migration to Amibroker from Wealth-lab



PureBytes Links

Trading Reference Links

Hello,

This does exactly what you are after (per-bar coloring of background based on condition):

Plot( Close, "Price", colorBlack, styleCandle ); 
 BkCOlor = IIF( MACD() > Signal(), colorGreen, colorRed );
Plot( 1, "", BkColor, styleArea | styleOwnScale | styleNoLabel, 0, 1 );

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "c_r_south" <colin_south@xxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, October 09, 2007 11:51 PM
Subject: [amibroker] Re: Migration to Amibroker from Wealth-lab


>I stand corrected, and thanks for pointing out LineArray. 
> 
> In WLB I can use different colours as an indicator e.g. be prepared to buy/
> sell might be changing the background from pale green to pale pink, derived from a 
> combination of indicators and hence reduce the number of plots I have to see. The 
> function call is SetBackgroundColor(bar,someColourCode). I'll look at your example below 
> to see whether I can reproduce something akin to what is available in WLB.
> Kind regards,
> Colin
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <groups@xxx> wrote:
>>
>> > Not being able to draw lines (i.e. anything other   than horizontal) a la WLab,
>> What are you taking about??????????????????????????
>> 
>> You can draw lines, circles, polygons EVERYTHING ! http://www.amibroker.com/guide/
> a_lowlevelgfx.html
>> 
>> As for line drawing:
>> http://www.amibroker.com/f?gfxlineto  (Y-value pixel based)
>> http://www.amibroker.com/f?linearray  (Y-value price based)
>> 
>> > and I miss being able to alter the  the background colour on a per bar basis.
>> Again what ???????????????????????????
>> 
>> Here it is - every bar color change in - actually 24 bit palette every bar different color !
>> 
>> Plot( Close, "Price", colorBlack, styleCandle ); 
>> BkCOlor = ColorRGB( BarIndex() % 255, BarIndex()/255 % 255, 255 - BarIndex() % 255 ); 
>> Plot( 1, "", BkColor, styleArea | styleOwnScale | styleNoLabel, 0, 1 ) 
>> 
>> (This is one of many possible ways, the other way is using low-level gfx).
>> 
>> I suggest you first read the User's Guide, it will open your eyes !
>> 
>> Best regards,
>> Tomasz Janeczko
>> amibroker.com
>> ----- Original Message ----- 
>> From: "c_r_south" <colin_south@xxx>
>> To: <amibroker@xxxxxxxxxxxxxxx>
>> Sent: Tuesday, October 09, 2007 3:19 PM
>> Subject: [amibroker] Re: Migration to Amibroker from Wealth-lab
>> 
>> 
>> > You may, as I did, find it quite a long learning curve. You will miss some facilities, like 
> the 
>> > interactive debugger, and being able to plot to a separate pane from within the main 
>> > program, although, once you get used to using WriteVal and styleOwnScale in the Plot 
>> > function, you can come quite close to WLab's debugging capability. You will need to 
>> > develop a slightly different mindset, with the predominence on solving using vector 
>> > aritmetic, it really is just a mind set thing. Not being able to draw lines (i.e. anything 
> other 
>> > than horizontal) a la WLab, will come as a bit of a shock, and I miss being able to alter 
> the 
>> > the background colour on a per bar basis. I'm currently struggling with multiple 
> trades, 
>> > and integrated brokerage (with IB), but will persevere and there are other guys in the 
> AB 
>> > formum who are very helpful.
>> > 
>> > The advantages of AB are well worth the effort, the speed of execution, the ability to 
> move 
>> > between layouts (compared with WLabs worksheets, which I find painfully slow) and 
> the 
>> > continuous stream of improvements are just a few.
>> > 
>> > To echo a previous response, my biggest leap forward was following Howard Bandy's 
>> > book, which, apart from a simple lead in to programming in AB, has a wealth of useful 
>> > information.
>> > 
>> > I keep WLB, but it has become a background tool, and have now found that I prefer to 
> use 
>> > AB, and am prepared to spend that extra time to gain the advantages.
>> > 
>> > Hope this helps,
>> > Colin
>> > 
>> > 
>> > --- In amibroker@xxxxxxxxxxxxxxx, "neil_cs_um" <neil_cs_um@> wrote:
>> >>
>> >> I have been a long time user of Wealth-lab. I am planning to move to
>> >> Amibroker. I was wondering if somebody can share his experiences. 
>> >> 
>> >> I have got around 30-40 wealthlab chartscripts which I need to
>> >> translate into AFL. So far, it looks it should not be difficult, and
>> >> AFL seems to have all the features and the functions of Wealthscript.
>> >> Is it straight-forward or am I going to be in some trouble? Is there a
>> >> tool for conversion ?
>> >> 
>> >> I also have one EOD and one realtime data adapter and a COM add-in.
>> >> All written in C#. Is it possible to use them in amibroker ?
>> >> 
>> >> Can I execute scripts in Amibroker from other applications through COM ?
>> >>
>> > 
>> > 
>> > 
>> > Please note that this group is for discussion between users only.
>> > 
>> > To get support from AmiBroker please send an e-mail directly to 
>> > SUPPORT {at} amibroker.com
>> > 
>> > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
>> > http://www.amibroker.com/devlog/
>> > 
>> > For other support material please check also:
>> > http://www.amibroker.com/support.html
>> > 
>> > Yahoo! Groups Links
>> > 
>> > 
>> > 
>> > 
>> >
>>
> 
> 
> 
> Please note that this group is for discussion between users only.
> 
> To get support from AmiBroker please send an e-mail directly to 
> SUPPORT {at} amibroker.com
> 
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
> 
> For other support material please check also:
> http://www.amibroker.com/support.html
> 
> Yahoo! Groups Links
> 
> 
> 
> 
>


Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/