|
|
|
Supreme Being
      
Group: Forum Members
Last Login: 1/23/2012 9:34:43 AM
Posts: 237,
Visits: 482
|
|
Anyone else getting lots of Floating point division by zero Errors?
Seems to be related to the alert on trendline penetration.
EXCEPTION
EZeroDivide in TMessageDataProvider
Floating point division by zero
CODE
0
MESSAGE
Floating point division by zero
DETAILS
CALL STACK
fx_client.exe=>FxChartDrawTool.pas=>LinesCrossPoint=>1389
fx_client.exe=>FxChartDrawTool.pas=>TTrendLine.CheckAlert=>1437
fx_client.exe=>FxChartDrawTool.pas=>TTrendLine.CheckAlert=>1425
fx_client.exe=>ChartWindowBase.pas=>TForm_ChartWindowBase.CheckAlerts=>1478
fx_client.exe=>ChartWindowBase.pas=>TForm_ChartWindowBase.CheckAlerts=>1470
fx_client.exe=>CandleChart.pas=>AddNewCandle=>189
fx_client.exe=>CandleChart.pas=>AddNewCandle=>163
fx_client.exe=>CandleChart.pas=>TForm_CandleChart.UpdateChartData=>208
fx_client.exe=>ChartWindowBase.pas=>TForm_ChartWindowBase.UpdateRow=>1381
fx_client.exe=>ChartWindowBase.pas=>TForm_ChartWindowBase.UpdateRow=>1375
fx_client.exe=>ChartWindowBase.pas=>TForm_ChartWindowBase.IVisualizerCommand=>1949
fx_client.exe=>ChartWindowBase.pas=>TForm_ChartWindowBase.IVisualizerCommand=>1945
fx_client.exe=>CandleChart.pas=>TForm_CandleChart.IVisualizerCommand=>539
fx_client.exe=>DataVisualizer.pas=>TDataVisualizer.SendCommand=>110
fx_client.exe=>DataVisualizer.pas=>TDataVisualizer.SendCommand=>108
fx_client.exe=>DataVisualizer.pas=>TDataVisualizer.Update=>147
fx_client.exe=>DataVisualizer.pas=>TDataVisualizer.Update=>147
fx_client.exe=>DataContainer.pas=>TDataContainer.UpdateRow=>214
fx_client.exe=>DataContainer.pas=>TDataContainer.UpdateRow=>212
fx_client.exe=>PairData.pas=>TPairData.UpdateRow=>407
fx_client.exe=>PairData.pas=>TPairData.ProcessCompactPair=>771
fx_client.exe=>PairData.pas=>TPairData.ProcessCompactPair=>744
fx_client.exe=>MessageDataProvider.pas=>TMessageDataProvider.ProcessMessage=>308
USER32.dll=>=>CallNextHookEx=>0
fx_client.exe=>cxContainer.pas=>ApplicationGetMessageMsgHookProc=>6318
USER32.dll=>=>DispatchMessageW=>0
USER32.dll=>=>DispatchMessageW=>0
fx_client.exe=>Fx_Client.dpr=>=>323
WINDOWS VERSION
5.1.2600 Service Pack 2
APPLICATION INFO
fx_client.exe 4.1.215.17/4.1.215
http://real5.sysfx.net:8136/xml/; eforex136; TRADER: ForexMonkey
RISE TIME
2010-05-30 21:45:04
Server Time: 9:45:02 PM
Happy Pipping!
|
|
|
|
|
Supreme Being
      
Group: Forum Members
Last Login: 2/7/2012 10:15:57 AM
Posts: 445,
Visits: 818
|
|
I haven't been getting these in ActTrader, mostly because the programming in my Strategies is too basic and not highly complicated, even though it is detailed.
I get these errors frequently in Excel. When I get them, I locate the point of error and do a workaround.
In ActTrader a workaround might look like:
if (History.Last(1).Close <> History.Last(2).Close) then
begin
VariableInQuestion:=History.Last(1).Close / History.Last(2).Close;
end;
if (History.Last(1).Close = History.Last(2).Close) then
begin
// Here is where you would enter some script to keep
// History.Last(1).Close from being divided by History.Last(2).Close,
// such as:
VariableInQuestion:=1;
end;
Of course, this can't be done in every area. Some places might require Delphi scripting of the ActTrader program itself.
Edited: 5/31/2010 6:31:32 AM by black
|
|
|
|
|
Supreme Being
      
Group: Forum Members
Last Login: 1/23/2012 9:34:43 AM
Posts: 237,
Visits: 482
|
|
Thanks black. Actually I'm not using any custom indicators or strategies, it seems to be tied to the alert on penetration or an out of the box moving average. Working with actfx right now and will update this post with findings.
Happy Pipping!
|
|
|
|
|
Supreme Being
      
Group: Forum Members
Last Login: 1/23/2012 9:34:43 AM
Posts: 237,
Visits: 482
|
|
Definitely related to the alert on penetration. When I remove all trend lines, the error doesn't appear again. Such a great feature, hope it starts working properly soon!
Happy Pipping!
|
|
|
|
|
Supreme Being
      
Group: Forum Members
Last Login: 2/7/2012 10:15:57 AM
Posts: 445,
Visits: 818
|
|
ActForex has been working on ActTrader. Have you seen all the new indicators that they have added? Some of them are terrific, like "Flipit."
I hope that they can add them to the Strategy section, and put the info for them in the manual.
So, they will probably find a way to handle your problem as well.
|
|
|
|
|
Supreme Being
      
Group: Forum Members
Last Login: 1/23/2012 9:34:43 AM
Posts: 237,
Visits: 482
|
|
Yes, ActFX has done a great job of adding some new features, I like the alert on trendline penetration the best. The indicators are all nice.
Happy Pipping!
|
|
|
|