Evaluation of rules

5 replies

Rico

Subscriber, bbp_participant, community, 15 replies.

Visit profile

7 years ago #116526

While the verbose logs are very detailed, it seems they don’t provide enough information in cases when i think a trade should have occurred.

 

That is, if i look at a chart and can see the conditions for a trade were fulfilled (according to the EA rules), yet no trade was opened, the log doesn’t tell me why this is.

 

The expert will produce a host of lines relating to opening trades, trade modifications and errors, but it doesn’t appear to tell me anything about why trades aren’t opened. For instance, the current EA i’m working with opens trades at specific hours if the length of the bar reaches a minimum.

 

As i write, it’s passed 3 hours specified in the input since i last looked, yet hasn’t opened trades. Two of these were cases where the minimum bar length wasn’t exceeded – so that makes sense (although i have to verify this manually. To me, if you have verbose logging, it would make more sense to output something like: “Conditions not met,” possibly including details of the conditions that weren’t met. Although i understand that giving details could be awkward if there are a lot of them.)

 

However in the last case, it met the conditions as far as i know, but no trades were opened and the log doesn’t tell me anything about why not.

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

7 years ago #142228

Hello,

 

can you attach the project you have problems with “no trades”?

What you usually need to do is to ouput any variable you have included in a trading decision and watch what happens when a trade is not executed as it is supposed to be

0

Rico

Subscriber, bbp_participant, community, 15 replies.

Visit profile

7 years ago #142239

thanks tomas. from observation i figured out why the third trade i mentioned didn’t open as well.

 

what you say about outputting variables makes sense. i just didn’t think about it having only started to use EAW fairly recently.

 

i will have a go at this at some point – thanks for the tip.

0

Rico

Subscriber, bbp_participant, community, 15 replies.

Visit profile

7 years ago #142436

I had a go at outputting variables, but i think something i did in the process caused EAW not to compile the EA properly.

 

It produced an EA, but it won’t run or allow me to see Expert properties.

 

I am going to send you a copy of this EA, and maybe you could explain where i went wrong?

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

7 years ago #142454

Hello,

 

thanks, got your mail. I will let you know

0

Rico

Subscriber, bbp_participant, community, 15 replies.

Visit profile

7 years ago #142536

An update just to let anyone reading this know the outcome: Tomas picked up a mistake in one of my rules which i didn’t notice. So thanks to Tomas.

 

Just like when you read sometimes and don’t notice extra words or misspellings, i didn’t see the error i’d made in the rules, even though i’d looked them over.

 

So the moral of the story? It’s nice to have an extra pair of eyes!

0

Viewing 5 replies - 1 through 5 (of 5 total)