Spider: an auto-trader for spiderforex's VQ system

Post Reply
User avatar
gaheitman
Trader
Posts: 655
Joined: Tue Nov 15, 2011 10:55 pm
Location: Richmond, VA, US

Re: Spider: an auto-trader for spiderforex's VQ system

Post by gaheitman »

rebeljedi wrote: I ran another Strategy Tester with OOTB settings except changing UseDFTD from true to false and there were no results too. The errors were the same - unmatched data errors and dll calls are not allowed; 'kernel32.dll'-'GetFileAttributesA'.
The code requires dll calls to be enabled so that it can check for the existence of the indicator it needs.

The other error is due to your history data being bad. See http://www.earnforex.com/blog/2011/05/u ... ata-error/
rebeljedi wrote: EA on demo
I also ran the DFTD EA on demo and the management alerts (on screen) were not shown although SetManagementAlerts was set to true. I cannot tell when spider is running.
Are the Trade Hours based on Empty4 server time or based on my computer local time?

Please let me know how to proceed further with the testing, thanks.
Change your chart template to something other than the default. For some reason the grid color is the same as the background color, so comments don't appear. You can just change to the black on white color scheme by pressing <F8> on the chart.

George
rebeljedi
Trader
Posts: 87
Joined: Mon Nov 21, 2011 4:17 am

Re: Spider: an auto-trader for spiderforex's VQ system

Post by rebeljedi »

gaheitman wrote: The code requires dll calls to be enabled so that it can check for the existence of the indicator it needs.

The other error is due to your history data being bad. See http://www.earnforex.com/blog/2011/05/u ... ata-error/
Hi George,
thanks for your quick reply and also for providing the info on countering unmatched data errors. I applied what were advised but I am getting roadblocks.

Test#1: Use another Empty4
I downloaded Empty4 directly from MetaQuotes and also toggled the dll calls.
Using OOTB settings, there were no results from Strategy Tester.

Test#2: Use data from History Center
I then used the MetaQuotes' Empty4 and downloaded the history from History Center.
Using OOTB settings, there were no results from Strategy Tester.
This time, the errors were all 131 invalid trade volume.

Is there any other broker I can use? I was using GFT demo for Simple Spider EA - the Strategy Tester and Management Alert were working.
rebeljedi wrote: EA on demo
I also ran the DFTD EA on demo and the management alerts (on screen) were not shown although SetManagementAlerts was set to true. I cannot tell when spider is running.
Are the Trade Hours based on Empty4 server time or based on my computer local time?

Please let me know how to proceed further with the testing, thanks.
gaheitman wrote: Change your chart template to something other than the default. For some reason the grid color is the same as the background color, so comments don't appear. You can just change to the black on white color scheme by pressing <F8> on the chart.

George
I changed to the [black on white] scheme but the management alert does not appear.
I also differentiated the background color from the grid color and still the management alert does not appear. Any ideas?
User avatar
gaheitman
Trader
Posts: 655
Joined: Tue Nov 15, 2011 10:55 pm
Location: Richmond, VA, US

Re: Spider: an auto-trader for spiderforex's VQ system

Post by gaheitman »

rebeljedi wrote:
gaheitman wrote: The code requires dll calls to be enabled so that it can check for the existence of the indicator it needs.

The other error is due to your history data being bad. See http://www.earnforex.com/blog/2011/05/u ... ata-error/
Hi George,
thanks for your quick reply and also for providing the info on countering unmatched data errors. I applied what were advised but I am getting roadblocks.

Test#1: Use another Empty4
I downloaded Empty4 directly from MetaQuotes and also toggled the dll calls.
Using OOTB settings, there were no results from Strategy Tester.

Test#2: Use data from History Center
I then used the MetaQuotes' Empty4 and downloaded the history from History Center.
Using OOTB settings, there were no results from Strategy Tester.
This time, the errors were all 131 invalid trade volume.

Is there any other criminal I can use? I was using GFT demo for Simple Spider EA - the Strategy Tester and Management Alert were working.
rebeljedi wrote: EA on demo
I also ran the DFTD EA on demo and the management alerts (on screen) were not shown although SetManagementAlerts was set to true. I cannot tell when spider is running.
Are the Trade Hours based on Empty4 server time or based on my computer local time?

Please let me know how to proceed further with the testing, thanks.
gaheitman wrote: Change your chart template to something other than the default. For some reason the grid color is the same as the background color, so comments don't appear. You can just change to the black on white color scheme by pressing <F8> on the chart.

George
I changed to the [black on white] scheme but the management alert does not appear.
I also differentiated the background color from the grid color and still the management alert does not appear. Any ideas?
I'm not sure what to tell you. I downloaded the version I uploaded, put it on Cowboy IBFX demo and OOTB it took a trade. I also ran it in strategy tester and it worked fine.

When you drop it on a chart, you should see to entries in your Journal:

Code: Select all

02:48:05 Expert Simple Spider EURUSD,M1: loaded successfully
02:48:37 Custom indicator VQ7 EURUSD,M1: loaded successfully
And in your experts log you should see:

Code: Select all

02:48:00 Simple Spider EURUSD,M1: loaded successfully
02:48:05 Simple Spider EURUSD,M1 inputs: gen="----General inputs----"; Lot=0.01; StopTrading=false; TradeLong=true; TradeShort=true; MagicNumber=325; TradeComment="Spider"; CriminalIsECN=true; MaxSpread=40; te="----Trade exit inputs----"; FirstTradeTakeProfit=90; SubsequentTakeProfit=30; StopLoss=30; vq="----VQ inputs----"; VqTimeFrame=0; VqLength=8; VqMethod=3; VqSmoothing=1; VqFilter=5; mi="====Martingale inputs----"; UseMartingale=true; MartingaleLotMultiplier=2; MaxLotsAllowed=0.32; amc="----Available Margin checks----"; sco="Scoobs"; UseScoobsMarginCheck=false; fk="ForexKiwi"; UseForexKiwi=true; FkMinimumMarginPercent=1500; tt="----Trading hours----"; Trade_Hours="Set Session Trading Hours"; Trade_Hoursi="Use 24 hour, Server time"; Trade_Hours_E="Europe Session 7:00-12:00"; Start_TimeE="7:00"; End_TimeE="12:00"; Trade_Hours_U="US Session 13:00-16:00"; Start_TimeU="13:00"; End_TimeU="17:00"; Trade_Hours_A="Asia Session 23:00-4:00"; Start_TimeA="23:00"; End_TimeA="4:00"; spt="----Specific time inputs----"; StartTime=0; 
02:48:05 VQ7 EURUSD,M1: loaded successfully
02:48:05 VQ7 EURUSD,M1: initialized
02:48:37 Simple Spider EURUSD,M1: initialized
What are you getting in your logs after you drop the expert on your chart in demo?

George
rebeljedi
Trader
Posts: 87
Joined: Mon Nov 21, 2011 4:17 am

Re: Spider: an auto-trader for spiderforex's VQ system

Post by rebeljedi »

Hi George,

I re-downloaded the test Simple Spider EA and I am getting this from the MetaQuotes Empty4's expert log:

Code: Select all

17:10:55 Simple Spider EURUSD,M1: loaded successfully
17:10:55 Simple Spider EURUSD,M1 inputs: gen="----General inputs----"; Lot=0.01; StopTrading=false; TradeLong=true; TradeShort=true; MagicNumber=325; TradeComment="Spider"; CriminalIsECN=false; MaxSpread=40; te="----Trade exit inputs----"; FirstTradeTakeProfit=90; SubsequentTakeProfit=30; StopLoss=30; vq="----VQ inputs----"; VqTimeFrame=0; VqLength=8; VqMethod=3; VqSmoothing=1; VqFilter=5; mi="====Martingale inputs----"; UseMartingale=true; MartingaleLotMultiplier=2; MaxLotsAllowed=0.32; amc="----Available Margin checks----"; sco="Scoobs"; UseScoobsMarginCheck=false; fk="ForexKiwi"; UseForexKiwi=true; FkMinimumMarginPercent=1500; tt="----Trading hours----"; Trade_Hours="Set Session Trading Hours"; Trade_Hoursi="Use 24 hour, Server time"; Trade_Hours_E="Europe Session 7:00-12:00"; Start_TimeE="7:00"; End_TimeE="12:00"; Trade_Hours_U="US Session 13:00-16:00"; Start_TimeU="13:00"; End_TimeU="17:00"; Trade_Hours_A="Asia Session 23:00-4:00"; Start_TimeA="23:00"; End_TimeA="4:00"; spt="----Specific time inputs----"; StartTime=0; 
17:25:10 Simple Spider EURUSD,M1: shutdown by timeout
17:25:10 Simple Spider EURUSD,M1: terminated by timeout
17:25:10 VQ7 EURUSD,M1: loaded successfully
17:25:10 VQ7 EURUSD,M1: initialized
17:25:12 Simple Spider EURUSD,M1: zero divide
17:25:12 Simple Spider EURUSD,M1: deinitialized
17:25:12 Simple Spider EURUSD,M1: uninit reason 4
17:25:12 VQ7 EURUSD,M1: uninit reason 1
17:25:12 VQ7 EURUSD,M1: removed
17:25:12 Simple Spider EURUSD,M1: removed
Is there some error? [17:25:12 Simple Spider EURUSD,M1: uninit reason 4]

Do I need some file?
When Empty4 starts up, there is a Simple Spider pop-up window asking " Do you permit to call function 'GetFileAttributesA' from 'kernel32.dll'? " I clicked on Yes everytime.

Using Cowboy IBFX demo
I used the same test Simple Spider EA and loaded into newly created Cowboy IBFX demo. The expert log showed:

Code: Select all

17:25:14 VQ7 EURUSDm,M1: loaded successfully
17:25:15 Simple Spider EURUSDm,M1: loaded successfully
17:25:15 Simple Spider EURUSDm,M1 inputs: gen="----General inputs----"; Lot=0.01; StopTrading=false; TradeLong=true; TradeShort=true; MagicNumber=325; TradeComment="Spider"; CriminalIsECN=false; MaxSpread=40; te="----Trade exit inputs----"; FirstTradeTakeProfit=90; SubsequentTakeProfit=30; StopLoss=30; vq="----VQ inputs----"; VqTimeFrame=0; VqLength=8; VqMethod=3; VqSmoothing=1; VqFilter=5; mi="====Martingale inputs----"; UseMartingale=true; MartingaleLotMultiplier=2; MaxLotsAllowed=0.32; amc="----Available Margin checks----"; sco="Scoobs"; UseScoobsMarginCheck=false; fk="ForexKiwi"; UseForexKiwi=true; FkMinimumMarginPercent=1500; tt="----Trading hours----"; Trade_Hours="Set Session Trading Hours"; Trade_Hoursi="Use 24 hour, Server time"; Trade_Hours_E="Europe Session 7:00-12:00"; Start_TimeE="7:00"; End_TimeE="12:00"; Trade_Hours_U="US Session 13:00-16:00"; Start_TimeU="13:00"; End_TimeU="17:00"; Trade_Hours_A="Asia Session 23:00-4:00"; Start_TimeA="23:00"; End_TimeA="4:00"; spt="----Specific time inputs----"; StartTime=0; 
17:25:15 Cowboy IBFX terminal info EURUSDm,M1: initialized
17:25:15 VQ7 EURUSDm,M1: initialized
17:25:16 Cowboy IBFX - Mini terminal EURUSDm,H4: initialized
17:25:21 VQ7 EURUSDm,M1: loaded successfully
17:25:21 VQ7 EURUSDm,M1: initialized
17:25:21 Simple Spider EURUSDm,M1: zero divide
17:25:21 Simple Spider EURUSDm,M1: initialized
Cowboy IBFX demo's Strategy Tester is working but how do I switch on the usual info screen (pls see attachments)?
You do not have the required permissions to view the files attached to this post.
User avatar
gaheitman
Trader
Posts: 655
Joined: Tue Nov 15, 2011 10:55 pm
Location: Richmond, VA, US

Re: Spider: an auto-trader for spiderforex's VQ system

Post by gaheitman »

Try changing the color scheme in the Strategy Tester windows as I mentioned earlier. I'm pretty sure it's the fix in strategy tester. Still looking at the other errors.
rebeljedi
Trader
Posts: 87
Joined: Mon Nov 21, 2011 4:17 am

Re: Spider: an auto-trader for spiderforex's VQ system

Post by rebeljedi »

gaheitman wrote:Try changing the color scheme in the Strategy Tester windows as I mentioned earlier. I'm pretty sure it's the fix in strategy tester. Still looking at the other errors.
Thanks a lot, George.
I just tried the [Black on White] color scheme on Cowboy IBFX demo but the info screen does not appear.
You do not have the required permissions to view the files attached to this post.
User avatar
gaheitman
Trader
Posts: 655
Joined: Tue Nov 15, 2011 10:55 pm
Location: Richmond, VA, US

Re: Spider: an auto-trader for spiderforex's VQ system

Post by gaheitman »

rebeljedi wrote:Is there some error? [17:25:12 Simple Spider EURUSD,M1: uninit reason 4]
This just means you closed the chart. Well, that's what the documentation says it means. :D

Code: Select all

REASON_REMOVE       1     Expert removed from chart.
REASON_RECOMPILE    2     Expert recompiled.
REASON_CHARTCHANGE  3     symbol or timeframe changed on the chart.
REASON_CHARTCLOSE   4     Chart closed.
REASON_PARAMETERS   5     Inputs parameters was changed by user.
REASON_ACCOUNT      6     Other account activated.
Not sure why you are getting the divide by zero. The only division I have added is dividing by AccountBalance(), the multiplier and MarketIndo(Symbol(),MODE_TICKVALUE). Can you run the script at http://www.stevehopwoodforex.com/phpBB3 ... f=21&t=205 and paste the results? I want to make sure your TICKVALUE is normal.

George
User avatar
gaheitman
Trader
Posts: 655
Joined: Tue Nov 15, 2011 10:55 pm
Location: Richmond, VA, US

Re: Spider: an auto-trader for spiderforex's VQ system

Post by gaheitman »

rebeljedi wrote:
gaheitman wrote:Try changing the color scheme in the Strategy Tester windows as I mentioned earlier. I'm pretty sure it's the fix in strategy tester. Still looking at the other errors.
Thanks a lot, George.
I just tried the [Black on White] color scheme on Cowboy IBFX demo but the info screen does not appear.
Can you make sure you don't have any other indicators running? The log from earlier shows that you had Cowboy IBFX Terminal Info running. It uses the comment feature too, so they would be constantly overwriting each other.
rebeljedi
Trader
Posts: 87
Joined: Mon Nov 21, 2011 4:17 am

Re: Spider: an auto-trader for spiderforex's VQ system

Post by rebeljedi »

gaheitman wrote: This just means you closed the chart. Well, that's what the documentation says it means. :D

Code: Select all

REASON_REMOVE       1     Expert removed from chart.
REASON_RECOMPILE    2     Expert recompiled.
REASON_CHARTCHANGE  3     symbol or timeframe changed on the chart.
REASON_CHARTCLOSE   4     Chart closed.
REASON_PARAMETERS   5     Inputs parameters was changed by user.
REASON_ACCOUNT      6     Other account activated.
Not sure why you are getting the divide by zero. The only division I have added is dividing by AccountBalance(), the multiplier and MarketIndo(Symbol(),MODE_TICKVALUE). Can you run the script at http://www.stevehopwoodforex.com/phpBB3 ... f=21&t=205 and paste the results? I want to make sure your TICKVALUE is normal.

George
Thanks again, George! :D
Enclosed are the Currency Info for Cowboy IBFX Empty4 and MetaQuotes Empty4 demos.
[I don't know how to copy the currinfo and paste it here, so I am using pixs]

What should I be looking for, under Tick Value column?
You do not have the required permissions to view the files attached to this post.
User avatar
gaheitman
Trader
Posts: 655
Joined: Tue Nov 15, 2011 10:55 pm
Location: Richmond, VA, US

Re: Spider: an auto-trader for spiderforex's VQ system

Post by gaheitman »

Nothing weird there (other than the output looks horrible with pairs that have suffixes!). Go ahead and turn off the DoneForTheDay() check and see what we get.
Post Reply

Return to “Automated trading systems”