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

Re: [amibroker] Can anyone help me?


  • Date: Tue, 05 Jan 2010 21:41:08 +0530
  • From: "Vinay Gakkhar." <vgakkhar@xxxxxxxxxxx>
  • Subject: Re: [amibroker] Can anyone help me?

PureBytes Links

Trading Reference Links

Dear Aron,

Thanks. Many many thanks.

Best regards,

Vinay

On Tue, 05 Jan 2010 21:06:57 +0530, Aron <aron.groups@xxxxxxxxx> wrote:

> I'm sure there is a much shorter way but in the mean time:
> |
>
> pds = 12;
> top = *H* == HHV(*H*, pds);
> bot = *L* == LLV(*L*,pds);
> direction = 1;
> up = 0;
> j = 0;
> barnum = 0;
>
> *for* ( i = 0; i <*BarCount*; i ++)
> {
>
> *if* (up)
>     {
> *if* ( top[i])
>        {
>           barnum[j] = i;
>        }
> *else*
>        {
> *if* ( bot[i])
>           {
>              j++;
>              barnum[j] = i;
>              up= 0;
>           }
>        }
>
>     }
> *else*
>     {
> *if* ( bot[i])
>        {
>           barnum[j] = i;
>        }
> *else*
>        {
> *if* (top[i])
>           {
>              j++;
>              barnum[j] = i;
>              up = 1;
>           }
>        }
>
>     }
>
>     direction[i] = up;
> }
>
> bar = 0;
> *for*( i = 0; i <*BarCount*; i++)
> {
> *for* ( n = 0; n< j+1; n ++)
>     {
> *if*( i == barnum[n])
>        bar[i] = barnum[n];
>     }
> }
>
>
> Color = IIf ( direction, *colorGreen*, *colorRed*);
> position = IIf ( direction, *H*, *L*);
> shape = IIf ( direction,*shapeDownArrow*, *shapeUpArrow*);
>
> Plot(*C*, "", Color,*styleBar*);
> PlotShapes ((bar == BarIndex() )* shape, Color, 0, position);|
>
>
> On 1/5/2010 1:33 PM, Vinay Gakkhar. wrote:
>> Dear Aron,
>>
>> You are right that in order to get what I want I need to look into the future. That's alright with me.
>>
>> Request please advise me how to.
>>
>> Best regards,
>>
>> Vinay
>>
>> On Tue, 05 Jan 2010 16:14:03 +0530, Aron<aron.groups@xxxxxxxxx>  wrote:
>>
>>
>>> Vinay,
>>>
>>> In order to get that you need to look into the future which is smth. you
>>> do not want to do.
>>>
>>> each arrow represents the topmost and bottom most for the period the period.
>>>
>>> Aron
>>>
>>> On 1/5/2010 10:46 AM, Vinay Gakkhar. wrote:
>>>
>>>> Dear Aron,
>>>>
>>>> Thank you very much for your help.
>>>>
>>>> As you will see from the attached screenshot, I am getting many up&   down arrows whereas I want only one arrow in 12 bars only on the topmost bar in 12 bars or on the bottommost bar in 12 bars.
>>>>
>>>> Request further help.
>>>>
>>>> Best regards,
>>>>
>>>> Vinay
>>>>
>>>> On Tue, 05 Jan 2010 13:36:43 +0530, Aron<aron.groups@xxxxxxxxx>   wrote:
>>>>
>>>>
>>>>
>>>>> |PlotShapes( (*L*== LLV(*L*,12) )* *shapeUpArrow*, *colorRed*, 0, *L*);
>>>>> PlotShapes( (*H*== HHV(*H*,12) )* *shapeDownArrow*, *colorGreen*, 0, *H*);|
>>>>>
>>>>>
>>>>> On 1/5/2010 7:24 AM, Vinay Gakkhar. wrote:
>>>>>
>>>>>
>>>>>> I want to use Plotshapes to give up&    down arrows on the lowest&    the highest of last 12 bars. Only one up arrow&    only one down arrow, only on the topmost&    the bottommost price of the last 12 bars.
>>>>>>
>>>>>> Can anyone please guide me?
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Vinay
>>>>>>
>>>>>>
>>>>>> ------------------------------------
>>>>>>
>>>>>> **** IMPORTANT PLEASE READ ****
>>>>>> This group is for the discussion between users only.
>>>>>> This is *NOT* technical support channel.
>>>>>>
>>>>>> TO GET TECHNICAL SUPPORT send an e-mail directly to
>>>>>> SUPPORT {at} amibroker.com
>>>>>>
>>>>>> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
>>>>>> http://www.amibroker.com/feedback/
>>>>>> (submissions sent via other channels won't be considered)
>>>>>>
>>>>>> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
>>>>>> http://www.amibroker.com/devlog/
>>>>>>
>>>>>> Yahoo! Groups Links
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>> --
>>>>
>>>> ------------------------------------
>>>>
>>>> **** IMPORTANT PLEASE READ ****
>>>> This group is for the discussion between users only.
>>>> This is *NOT* technical support channel.
>>>>
>>>> TO GET TECHNICAL SUPPORT send an e-mail directly to
>>>> SUPPORT {at} amibroker.com
>>>>
>>>> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
>>>> http://www.amibroker.com/feedback/
>>>> (submissions sent via other channels won't be considered)
>>>>
>>>> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
>>>> http://www.amibroker.com/devlog/
>>>>
>>>> Yahoo! Groups Links
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> ------------------------------------
>>>
>>> **** IMPORTANT PLEASE READ ****
>>> This group is for the discussion between users only.
>>> This is *NOT* technical support channel.
>>>
>>> TO GET TECHNICAL SUPPORT send an e-mail directly to
>>> SUPPORT {at} amibroker.com
>>>
>>> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
>>> http://www.amibroker.com/feedback/
>>> (submissions sent via other channels won't be considered)
>>>
>>> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
>>> http://www.amibroker.com/devlog/
>>>
>>> Yahoo! Groups Links
>>>
>>>
>>>
>>>
>>>
>>
>>
>
>


-- 


------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

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

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:
    amibroker-digest@xxxxxxxxxxxxxxx 
    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/