Re: [amibroker] Re: Difference between Amibroker and Interactive Brokers

2009-05-19 Thread malcolm Crouch
Well there is a PC app , a web app you can develop (programme) the pc app so im wondering whats the differernce as many people use the IB Api here ? Cheers Malcolm On Mon, May 18, 2009 at 8:21 PM, murthysuresh mo...@sweetfolks.com wrote: what do u mean by pc and web based app. ---

[amibroker] Re: AFL Studies

2009-05-19 Thread af_1000000
--- In amibroker@yahoogroups.com, Tomasz Janeczko gro...@... wrote: All this is possible using these 3 building blocks: 1. Reading X/Y pos and mouse clicks: http://www.amibroker.com/guide/afl/afl_view.php?id=295 http://www.amibroker.com/guide/afl/afl_view.php?id=296

[amibroker] Having trouble with AddToComposite/Custom metrics

2009-05-19 Thread ian_rosbif
Can't fathom what I'm doing wrong, I'd be grateful for any help. I normally have indices UKX-FTSE DJI in my portfolio. FTSE is open 08:00-16:30, DJI from 14:30-21:00. When I tried to add 2 composites (one for each index) to use as a custom metric, the FTSE composite contained numbers for the

[amibroker] Re: Rmath installation: (d)com replacement

2009-05-19 Thread vlanschot
Thanks for this JH. I have not yet upgraded myself to R's 2.9 yet, so wasn't aware of any issues. We will evaluate all new releases and then decide whether we need to actually upgrade the RMath plug-in. PS --- In amibroker@yahoogroups.com, jeffro861 jeffro...@... wrote: It's taken a few

[amibroker] Multiple color.

2009-05-19 Thread Mohammed
Hi Frends, I'm using this code to show price in color depanding to my intery point. For example : mycolor = IIf(MACD() Signal(), colorGreen, colorRed); Current_Close = StrFormat( %g , C, SelectedValue( ROC( C, 1 ) ) ); GfxSelectFont( Arial Black, 15, 700 ); GfxSetBkMode( 1 );

[amibroker] Re: Where can I find the answer or fix to this script error ?

2009-05-19 Thread gmorlosky
Turns out to be a missing } --- In amibroker@yahoogroups.com, dingo waledi...@... wrote: I believe that the function has to be above the call. d On Mon, May 18, 2009 at 5:29 PM, gmorlosky gmorlo...@... wrote: ERROR No script block defined yet Can not retrieve script object

[amibroker] buy only if current position is zero

2009-05-19 Thread zeek ing
Is there a way to code that one should only buy if current position is zero?? Meaning one is currently not short. and vica versa. I can't seem to find away to this?? please help

[amibroker] Re: What jscript does active window only ?

2009-05-19 Thread gmorlosky
Is each upper tab of the panes considered a WorkBook and therefore it is something like ActiveWorkbook.Name that should be used ??? --- In amibroker@yahoogroups.com, gmorlosky gmorlo...@... wrote: I have this code which makes a ticker change to ALL panes. I just want to change the pane which

[amibroker] Re: Where can I find the answer or fix to this script error ?

2009-05-19 Thread gmorlosky
And yes, you are right, the function had to be above the call - Thanks. --- In amibroker@yahoogroups.com, gmorlosky gmorlo...@... wrote: Turns out to be a missing } --- In amibroker@yahoogroups.com, dingo waledingo@ wrote: I believe that the function has to be above the call. d On

[amibroker] Re: Multiple color.

2009-05-19 Thread gmorlosky
What is not working ? What do you expect the outcome to be ? --- In amibroker@yahoogroups.com, Mohammed softnews2...@... wrote: Hi Frends, I'm using this code to show price in color depanding to my intery point. For example : mycolor = IIf(MACD() Signal(), colorGreen, colorRed);

[amibroker] Symbol Lock

2009-05-19 Thread sidhartha70
TJ, Any info on the proposed 'symbol lock' feature coming...? I'm really struggling with my charts switching symbols when they are not supposed to. Like 10 - 20 times a day... driving me crazy. Thanks

Re: [amibroker] Symbol Lock

2009-05-19 Thread dingo
This happens without you doing anything? I've never seen this. d On Tue, May 19, 2009 at 10:49 AM, sidhartha70 sidharth...@yahoo.com wrote: TJ, Any info on the proposed 'symbol lock' feature coming...? I'm really struggling with my charts switching symbols when they are not supposed to.

[amibroker] Re: Equity line from Account Manager

2009-05-19 Thread Carl Vanhaesendonck
Thanks oceantimes, that's a good point too. I decided already to stick to excel for now; hopefully the account mgr features will be enhanced in a future upgrade. Carl

[amibroker] Re: Symbol Lock

2009-05-19 Thread sidhartha70
Dingo, Other users have reported similar experiences. Happens only between floating windows and windows within the AmiBroker main window... If you don't use that set-up then I doubt you'd see it. --- In amibroker@yahoogroups.com, dingo waledi...@... wrote: This happens without you doing

[amibroker] Re: How to run multiple parallel AA functions using VBscript?

2009-05-19 Thread ozzyapeman
Thanks for the tip Mike. I will start reading up on ShellRunAs. --- In amibroker@yahoogroups.com, Mike sfclimb...@... wrote: If you don't want to mess around with batch files, and just want to be able to right click on your VBScript file and say run as user, then have a look at ShellRunAs

[amibroker] Re: Equity line from Account Manager

2009-05-19 Thread tuzo_wilson
--- In amibroker@yahoogroups.com, Carl Vanhaesendonck carl@... wrote: Thanks oceantimes, that's a good point too. I decided already to stick to excel for now; hopefully the account mgr features will be enhanced in a future upgrade. I know it's sort of a secondary/tertiary feature so I

Re: [amibroker] Symbol Lock

2009-05-19 Thread Tomasz Janeczko
It will come before the end of June. Best regards, Tomasz Janeczko amibroker.com - Original Message - From: sidhartha70 sidharth...@yahoo.com To: amibroker@yahoogroups.com Sent: Tuesday, May 19, 2009 4:49 PM Subject: [amibroker] Symbol Lock TJ, Any info on the proposed 'symbol lock'

[amibroker] Re: AFL Studies

2009-05-19 Thread af_1000000
Sorry, I reposed it. The previous one was hardly readable. Thanks for a prompt replay. Sorry TJ, but your response is a semi-constructive one. I mentioned in my original posting that I do NOT want to use GFX functionality for several reasons: 1. It would be nice to save AFL study the same way

[amibroker] Re: Multiple color.

2009-05-19 Thread Mohammed
Hi, I got error saying: Error 5. Argument # 1 Has incorrecttype ( the function expects different argument type Here). I expect to change price color depandng to macd cross. Regards --- In amibroker@yahoogroups.com, Mohammed softnews2...@... wrote: Hi Frends, I'm using this code to

[amibroker] Re: Symbol Lock

2009-05-19 Thread sidhartha70
Awesome TJ. Thanks. --- In amibroker@yahoogroups.com, Tomasz Janeczko gro...@... wrote: It will come before the end of June. Best regards, Tomasz Janeczko amibroker.com - Original Message - From: sidhartha70 sidharth...@... To: amibroker@yahoogroups.com Sent: Tuesday, May 19,

[amibroker] Re: AFL Studies

2009-05-19 Thread af_1000000
Dennis. Thanks for some thoughts. I will think about your solutions. This is still about going around the problem rather than solving it, but it is better than nothing. A set of points is a study of its own, unfortunately not available currently in AB. What to do with these points is up to the

Re: [amibroker] Re: AFL Studies

2009-05-19 Thread Dennis Brown
AF, One more thought. If we could read the properties of a study as opposed to just the array of points, we could do more with creating custom studies. However, even if we can only continue to get the array out of the STUDY() function as is, a new type of study would make the idea

Re: [amibroker] Re: AFL Studies

2009-05-19 Thread Aron
here is something that might get you started: select your points using left mouse button , clear all using middle mouse button. |SetBarsRequired( -2, -2 ); bi = BarIndex(); bis = SelectedValue( bi ); symbol = Name(); tframe = Interval(); chartID = GetChartID(); Xname = X + chartID + symbol +

Re: [amibroker] Re: Multiple color.

2009-05-19 Thread wavemechanic
gfxsettextcolor() expects the argument to be a number not an array. Bill - Original Message - From: Mohammed To: amibroker@yahoogroups.com Sent: May 19, 2009 12:56 PM Subject: [amibroker] Re: Multiple color. Hi, I got error saying: Error 5. Argument # 1 Has

[amibroker] Re: Multiple color.

2009-05-19 Thread Mike
I believe that the problem is that you are passing an array to a function that is expecting a scaler. You could probably use the SelectedValue function on the (MACD() Signal()) condition to figure the current color in the same way that you are using it to figure the current close. Mike ---

[amibroker] Re: buy only if current position is zero

2009-05-19 Thread Mike
You don't need to do anything. That is the default built in behavior of AmiBroker (i.e. single position per symbol, redundant signals ignored). http://www.amibroker.com/guide/afl/afl_view.php?name=setbacktestmode Mike --- In amibroker@yahoogroups.com, zeek ing zeekin...@... wrote: Is there a

[amibroker] TJ - WishList - bar charts in cells of Explore

2009-05-19 Thread gmorlosky
TJ: What is the possibility of enhancing the Explore spreadsheet wiht this technique: http://infosthetics.com/archives/2006/08/excel_in_cell_graphing.html which is a simple repeat of characters to create bar charts REPT(|,percentage)

[amibroker] Re: AFL Studies

2009-05-19 Thread af_1000000
Aron, Dennis, Thanks for your replays. They are very interesting. Aron's script is good for AB session duration and although it does not allow point modification (once selected) it is a good starting point. Thank you Aron. Dennis you are right regarding point location modification when in study

Re: [amibroker] Re: Symbol Lock

2009-05-19 Thread reinsley
It's such a pain ! Happy to see a lock... sidhartha70 a écrit : Awesome TJ. Thanks. --- In amibroker@yahoogroups.com mailto:amibroker%40yahoogroups.com, Tomasz Janeczko gro...@... wrote: It will come before the end of June. Best regards, Tomasz Janeczko

[amibroker] Re: Multiple color.

2009-05-19 Thread Mohammed
Thank you for your help, But I relly give up with it to fix. If any one can help fix it I will be highly appreciated Regards --- In amibroker@yahoogroups.com, Mike sfclimb...@... wrote: I believe that the problem is that you are passing an array to a function that is expecting a

[amibroker] Re: buy only if current position is zero

2009-05-19 Thread noah.bender
That is true for the backtester but on the chart the code shows a 1 for buy and therefore plots an arrow. bc my code says if buy plot.. Now i know i have to write a loop to prevent a buy from showing up, but I am not sure how meaning a loop that will prevent a sell if I am in a

Re: [amibroker] TJ - WishList - bar charts in cells of Explore

2009-05-19 Thread Tomasz Janeczko
Hello, You can implement it on your own: function Rept( string, howmany ) { result = ; for( i = 0; i howmany; i++ ) result += string; return result; } Best regards, Tomasz Janeczko amibroker.com - Original Message - From: gmorlosky gmorlo...@yahoo.com To:

[amibroker] Re: TJ - WishList - bar charts in cells of Explore

2009-05-19 Thread Mike
I suspect that the more common request would be to have the function return an array for bar by bar results. Based on that assumption, the problem with coding our own Rept function is that we cannot add text, that changes bar by bar, to an exploration. In order to get an Exploration to give

[amibroker] Re: Multiple color.

2009-05-19 Thread Mike
I believe that you literally just have to wrap the MACD() Signal() in a call to SelectedValue. mycolor = IIf( SelectedValue( MACD() Signal() ), colorGreen, colorRed ); Current_Close = StrFormat( %g , C, SelectedValue( ROC( C, 1 ) ) ); GfxSelectFont( Arial Black, 15, 700 ); GfxSetBkMode( 1 );

[amibroker] Re: buy only if current position is zero

2009-05-19 Thread Mike
You don't need to write a loop. Use ExRem. Buy = ExRem(Buy, Sell); Sell = ExRem(Sell, Buy); However, if you plan to also backtest this code, then you would be better off to not use ExRem directly on Buy and Sell, but rather on temporary variables and plot the temporary variables instead. e.g.

[amibroker] Re: buy only if current position is zero

2009-05-19 Thread Mike
Sorry, My proposal did not take into consideration that you would be doing longs and shorts. You can ignore my previous post. Mike --- In amibroker@yahoogroups.com, Mike sfclimb...@... wrote: You don't need to write a loop. Use ExRem. Buy = ExRem(Buy, Sell); Sell = ExRem(Sell, Buy);

[amibroker] Re: TJ - WishList - bar charts in cells of Explore

2009-05-19 Thread gmorlosky
perfect --- In amibroker@yahoogroups.com, Tomasz Janeczko gro...@... wrote: Hello, You can implement it on your own: function Rept( string, howmany ) { result = ; for( i = 0; i howmany; i++ ) result += string; return result; } Best regards, Tomasz Janeczko

[amibroker] Re: TJ - WishList - bar charts in cells of Explore

2009-05-19 Thread gmorlosky
Is that why this isn't producing any repeated | in the Explore cells ? Filter = 1; i = 0; Buy = Close 0; Sell = Close 0; function Rept( string, howmany ) { result = ; for( i = 0; i howmany[i]; i++ ) result += string; // changed to howmany[i] because an array was required ??? return result; }

[amibroker] Re: TJ - WishList - bar charts in cells of Explore

2009-05-19 Thread gmorlosky
I fiddled around with the concept and if I use LastValue, it works perfect. repeats = ; string1 = |; Y = LastValue(int(RSI())); for( i = 0; i Y; i++ ) { repeats += string1; } --- In amibroker@yahoogroups.com, gmorlosky gmorlo...@... wrote: Is that why this isn't producing any repeated | in

[amibroker] Re: TJ - WishList - bar charts in cells of Explore

2009-05-19 Thread Mike
Yes. 1. Tomasz's original implementation expected a scaler for the 'howmany' argument, not an array. Your modification is not correct since you are iterating through the first 'howmany' elements of the array and comparing that value to your counting variable. This will cause an exit at a non

[amibroker] Re: TJ - WishList - bar charts in cells of Explore

2009-05-19 Thread Mike
Your code is just a duplication of Tomasz's function when passing LastValue(RSI()) as argument. The argument you've passed looks into the future and will always produce the same output regardless of the range selected. The results will be wrong for any exploration except a range of length 1 on

[amibroker] How to Open three Windows same Scrip DIFFERENT Time Frame in Linked Chart.

2009-05-19 Thread Shiree
How to Open three Windows same Scrip DIFFERENT Time Frame in Linked Chart. I am using Ami Ver 5.20. In linked Charts when I change Time Frame of one window others also change. I remeber long back in earlier versions in LINKED CHART I was able to --keep same scrip name with different TF .

[amibroker] Re: How to Open three Windows same Scrip DIFFERENT Time Frame in Linked Chart.

2009-05-19 Thread Mike
At the bottom of the chart you have a popup menu with an S and an I. For the window that you don't want to follow the time interval, cick on the I popup menu and select No Interval Link. Mike --- In amibroker@yahoogroups.com, Shiree mm9...@... wrote: How to Open three Windows same Scrip

[amibroker] Re: TJ - WishList - bar charts in cells of Explore

2009-05-19 Thread Mike
Bummer. I'm getting rounding errors at 9 digits so that my 1's start turning into other values. It might be nice to see support for this by introducing a new format constant to the AddColumn function and doing the number of characters calculation internally. The output could then be done using

[amibroker] Custom CandleBar / BarCandleTop or BarCandleBottom ?

2009-05-19 Thread Mr. Valley
Hi, All, 1.) How can this be done in AB? 2.) Would it require the use of a function and paint pixels OR can one control/code all aspects of a Candle to display a Custom BarCandle? example: If Close Ref(c,-1), include a fat candle top only on the portion of the bar above the high of the

[amibroker] Plot Vertical Line 50 days back

2009-05-19 Thread binjobingo
I want to plot a vertical line say 50 days back. Because If I use a 50 day Ema or Sma I want to see at a glance if lower values are to be dropped or upper values will be dropped 50 days back. will appreciate any help regarding the AFL