gangsta1 / Profile
gangsta1
Added topic Tick Data Testing 99% modelling quality vs metaquotes 90% modelling quality
So I am testing my EA with the EXACT same parameters on the d1 timeframe and comparing 90% modelling quality using data from metquotes (history center) with 99% modelling quality using tick data from Dukascopy. I would have thought that the tick
gangsta1
Added topic Auto detect GMT offset?
I have read through the threads in the forum which seem to be outdated and not have an ideal solution. Is there a way to auto detect the difference between broker time and GMT without the user needing to input a GMT offset? Currently I use code that
gangsta1
Added topic Feedback on my EA 12 year backtest report please
H1 EURUSD FROM 2001 with 2% risk per trade. I am looking at the areas that need improving. Test has been confirmed with a tick test (EA uses open prices)
gangsta1
Added topic Max v.s Relative DrawDown - Which has more significance for you?
Hi, When testing EA's, are you more concerned about the max or relative drawdown, perhaps both? I think max drawdown is more important as this determines the drop from the "balance" whereas relative determines the drop from the "equity". This way I
gangsta1
Added topic Only enter on first signal
I want my EA to only enter on the first signal, e.g. when the 3 MA crosses the 8 MA when both are above the 200 MA. At the moment the EA will do this on every cross above the 200 MA, but I would like to set it to ONLY enter on the first 3/8 cross
gangsta1
Added topic Optimization missing good results!?
I have been heavily optimizing my EA with genetic algorithm checked for faster speed. I found some excellent setting combinations but when I try to combine these with other settings those particular sets seem to be avoided by the optimization
gangsta1
Added topic Order Modify Error 130 Help Needed Please
For some reason when back testing with hundreds of trades over 10 years I get the occasional order modify error 130...The EA can have multiple orders open at the same time and when another order is open when the previous order is in profit it will
gangsta1
Added topic Order Modify Error 1 Help Please
I keep getting the error when closing out part of the lots of a trade and cannot seem to fix it, any ideas? It does not perform order modify on the sell order either which is strange! void BreakEven1() { if (BreakEvenType== 1 ) {
gangsta1
Added topic How to close ALL open orders?
I am looking for a way to close ALL open orders rather than just the current code I have which closes just 1 order: void IfOrderExists86() { bool exists = false ; for ( int i= OrdersTotal ()- 1 ; i
gangsta1
Added topic Trade Up With Trailing Gap
Hello, I want to trade up (add to position) with a trailing gap after a certain amount of pips but only ONE trade up order as the trade up distance is reached. E.g. place buy order - first order at +50 pips trade up trailing with trailing gap - new
gangsta1
Added topic Embedded TRUE/FALSE options - move on to next function?
Hello, I am in need of some help regarding an EA I have programmed that has indicators which can be set to true or false, currently I use an else statement to call another function that will run if the existing function is set to false. The problem
gangsta1
Added topic Is it possible to round up to the nearest 5 number?
I was wondering if it is possible to round up the stop loss or take profit to the nearest number that can be divided by 5
gangsta1
Added topic Set TP the same as the SL distance?
Hi, I am trying to make the distance of the take profit the same as the stop loss distance. The stop loss is based on an indicator and I need to get the distance of the open price and the indicator to duplicate this distance for the take profit? Can
gangsta1
Added topic Triangle formation EA/indicator
Hi Guys, I am trying to code an EA based on the triangle formation (breakout) but struggling to find an indicator to work with. Does anyone have one or know where I can get one? Cheers
gangsta1
Added topic Trying to add trailing stop & stop loss to EA, need help please...
Hi all, I am looking for someone to help me add a simple trailing stop and stop loss to this EA
gangsta1
Added topic How to use previous stop loss?
Hi All, I have been trying to get my EA to place an order with the same previous stop loss size (it is based on a candle low/high) for hours now with no luck. Basically, I would have to store and use the last stop loss value and call it for the order
gangsta1
Added topic Need help using % of equity rather than a % of free margin, code included..
I need to make this order function use a % of the AccountEquity rather than a % of the AccountFreeMargin. This code allows the risk to be adjusted depending on a win/loss, but calculates risk depending on free margin when I need it to calculate based
gangsta1
Added topic Need help counting consecutive profit orders and then resetting count after (x) amount of trades
I need help counting consecutive profit orders and then resetting count after (x) amount of trades.. So far I have: int ProfitHistoryOrdersCount() { int PosCnt = 0 ; int cnt = HistoryTotal();
gangsta1
Added topic more than 10 digits in extern int variable?
I can only set a maximum of 9 digits in the field for extern int from the EA properties ?? Anyways to increase this
: