|
A couple functions I'd like...
I have ideas for several pieces of code I'd like to generate but which I'd be happy to have someone else do too...I have more ideas now for code than I have time to create myself.
1- A function that keeps track as a program runs of the pips and counts pips won, pips lost and net total from the time the EA started until the present much like the strategy tester reports on the dollars I'd like to see a report on the pips, how many were average per trade, shorts, longs etc. so I can see from a pip perspective how well the code is working. factoring in the spread appropriately on each trade of course.
2- I would like to see a code made that resolves the common problem of when a close in the current bar is crossing over a moving average and instead of the order opening right on the cross of those two lines it open several pips off of that crossing often ten or more pips away. When two lines cross in the current bar also I want only one order to open preciesly where the cross occurs and no additional orders in that bar. This is a common programming challenge that I've got right now. The best I've been able to do so far is make a filter that prevents anything outside a specified variance from opening like 2 pips or so but that often doesn't fill unless the variance is 4 pips or more. Seems to me that if the market moves thru that range there ought to be a way to get the order where you want it right on the cross. One order no more no less right on the cross. Is that too much to ask of a function?
if any of these code solutions are already done I'd like to be linked to them, that would work too.
|