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

Re: [amibroker] Re: Amibroker Code for MAMA adaptive moving average



PureBytes Links

Trading Reference Links

Error message says it all.
sbMAMA function that is exported from 3rd party DLL is giving you crash.
The 3rd party plugin you are using is the culprit.

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "Debdulal Bhattacharyya" <sdebu_2k@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Saturday, April 26, 2008 11:49 AM
Subject: [amibroker] Re: Amibroker Code for MAMA adaptive moving average


> Rakesh,
> Thank you very much for your reply. I got the required dll and 
> completed afl. its shows the chart as it would be.
> But there is a problem,
> I have added some extra code in it to get buy signal and sell signal 
> on the chart itself and its working fine but problem starts when I 
> start scanning of my NSE stock database it gives error like this
> =====================================================================
> AmiBroker version 5.00.1.4750
> ( cooltool.dll 5.0.1,  mfc42.dll 6.2.4131,  msvcrt.dll 7.0.2600 )
> 
> Microsoft Windows XP version 5.1 (Build 2600)
> Service Pack 2.0
> Common Controls: 6.0
> 
> Unhandled exception
> Type: CSysException
> Code: c0000005
> Description: ACCESS VIOLATION
> Address: 00E94079
> 
> 
> FAMA = 0.5 * Alpha * MAMA; 
> FAMA = 0.5 * Alpha * MAMA + (1 - 0.5 * Alpha) * Ref(FAMA,-1); 
> 
> Plot(C,"Price",IIf(sbMAMA(C,0.5,0
> --------------------------------^
> 
> Error 47.
> Exception occurred during AFL formula execution at address: E94079, 
> code: C0000005
> AFL Parser status:
> Processing stage: EXECUTE
> Formula ID: 0 ()
> Action 3 (SCAN)
> 
> Additional information:
> 
> Number of stock loaded: 7093
> Currently selected stock: 500211
> Number of quotes (current stock): 3798
> 
> Workspace:
> Data source = (local), Data local mode = 1, NumBars = 1000
> 
> Preferences:
> Data source = (local), Data local mode = 1, NumBars = 1000
> 
> Command history:
> 2828 - Shows Analyser - a tool to test systems & explore market--
> Auto-Analyser
> 3236 - Save all modified files--Save All
> 2986 - Draw ray (righ extended line)--Ray
> 2986 - Draw ray (righ extended line)--Ray
> 68424 - 
> 3236 - Save all modified files--Save All
> 2831 - Import ASCII file using predefined formats--ASCII import
> 68424 - 
> 68424 - 
> 68424 - 
> 68424 - 
> 68424 - 
> 68424 - 
> 68424 - 
> 2946 - Edit formula of custom indicator
> 3236 - Save all modified files--Save All
> 
> Cache manager stats:
> Number of list elements: 1747
> Number of map elements: 1747
> Hash table size: 5987
> 
> Memory status:
>  MemoryLoad: 45 %
>  TotalPhys:      1037412K  AvailPhys:       562880K
>  TotalPageFile:  2498456K  AvailPageFile:  2160972K
>  TotalVirtual:   2097024K  AvailVirtual:   1880308K
> 
> Last Windows message:
> HWnd: 0xa0186
> Msg: 0x0110
> wParam: 0x000c017c
> lParam: 0x00000000
> =====================================================================
> 
> Probably memory problem.(as during scanning every time the afl has 
> to reference the dll file within a very short time span)though I 
> have 1GB memory with Intel core2duo processor.
> Please put some light on it.
> Thanx in advance
> Debdulal Bhattacharyya
> Kolkata
> 
> 
> 
> ------------------------------------
> 
> 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/