|
GregorAnton
|
Posted Sunday, May 30, 2010
|
|
Group: Forum Members
Last Active: Monday, March 12, 2012
Posts: 237,
Visits: 483
|
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!
|
|
|
|
|
black
|
Posted Monday, May 31, 2010
|
|
Group: Forum Members
Last Active: 3 hours ago
Posts: 462,
Visits: 848
|
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.
Monday, May 31, 2010 by
black
|
|
|
|
|
GregorAnton
|
Posted Monday, May 31, 2010
|
|
Group: Forum Members
Last Active: Monday, March 12, 2012
Posts: 237,
Visits: 483
|
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!
|
|
|
|
|
GregorAnton
|
Posted Monday, May 31, 2010
|
|
Group: Forum Members
Last Active: Monday, March 12, 2012
Posts: 237,
Visits: 483
|
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!
|
|
|
|
|
black
|
Posted Thursday, June 03, 2010
|
|
Group: Forum Members
Last Active: 3 hours ago
Posts: 462,
Visits: 848
|
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.
|
|
|
|
|
GregorAnton
|
Posted Sunday, June 06, 2010
|
|
Group: Forum Members
Last Active: Monday, March 12, 2012
Posts: 237,
Visits: 483
|
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!
|
|
|
|