- Search Metals Mine
- 1,856 Results (15 Threads, 1,841 Replies)
- Gumrai replied Jul 6, 2015
It is not a problem with ask/bid, it is just the way it is. I don't think that code can be attached in a PM, but I haven't checked that for a while.
Problem with deleting pending orders
- Gumrai replied Jul 5, 2015
Buy orders are placed at the Ask price, the chart is Bid price. So Ask may hit a level when Bid doesn't. I can't see why your orders are not being deleted. The only other thing that I can think of is that you have a return somewhere before the code ...
Problem with deleting pending orders
- Gumrai replied Jul 5, 2015
You didn't answer. When the pending orders are placed, are they given the magic number? Where is total=OrdersTotal()? Why use an intermediary variable? Just use OrdersTotal()
Problem with deleting pending orders
- Gumrai replied Jul 4, 2015
I think that your first code is more viable What is the value of the variable total? Where does it get its value from? When you place the pending orders are you giving them the magic number?
Problem with deleting pending orders
- Gumrai replied Jul 2, 2015
You're welcome bientos. I left the indicator on the chart and found that it is giving a pop-up alert on every bar. The code for the alert is the same as the original as I didn't look at that. I've now modified it so that it only alerts when a new ...
Custom RSI Indicator Arrow Not Working
- Gumrai replied Jul 1, 2015
I have made changes so that it will only draw the arrows when the bar closes and when there is an actual cross of the RSI level
Custom RSI Indicator Arrow Not Working
- Gumrai replied Jul 1, 2015
Hi, You did say "It should show a blue arrow when RSI(4) is above 50 and a red arrow when RSI(4) is below 50." Nothing about alternate arrows. I just corrected the code to use the correct values. I will look at the code more closely and make some ...
Custom RSI Indicator Arrow Not Working
- Gumrai replied Jul 1, 2015
Try this EDIT indicator removed - new modification attached to post #5
Custom RSI Indicator Arrow Not Working
- Gumrai replied Jul 1, 2015
Why do you do this? int StartBar = iBarShift(Symbol(), PERIOD_M5, h == 9); (h == 9)is a boolean expression that can only result in true or false iBarShift requires a datetime value, not boolean
Help needed with EA coding
- Gumrai replied Jun 29, 2015
Hi, can you please test this You will see that the "label" has now been replaced by "Buy" and the lower line will be used for the stoploss Clicking on the label will toggle between buy and sell. When sell is showing, the upper line will be used for ...
Combine 2 indicators
- Gumrai replied Jun 28, 2015
Hi, I obviously haven't tested this in the live market, it being the weekend. To move the text labels, just click on the "o" and move the mouse. Then click again. That's click and release, not click and drag. Incidently, I have just noticed the ...
Combine 2 indicators
- Gumrai replied Jun 26, 2015
Hello Motiram, I assume that you mean for one of the line's distance to be used to calculate the lot size? If so, which one?
Combine 2 indicators
- Gumrai replied Jun 24, 2015
Without seeing the code, it is impossible to answer. What are you seeing in the journal? Could it be that you don't have enough margin to place the trades with a higher lot size?
Help needed with EA coding
- Gumrai replied Jun 8, 2015
Similar to my first thought. I included the array because Chorlton requested "I want to loop through all my open trades, arrange them in order depending on how much open profit/loss each one has" What you have done, by not including untriggered stop ...
Issues with trying to sort
- Gumrai replied Jun 8, 2015
Not tested, but may help you double orders_array[][2]; int total=OrdersTotal(); ArrayResize(orders_array,total); int index; for(index=total-1;index>=0;index--) if(OrderSelect(index,SELECT_BY_POS)) { orders_array[index][0]=OrderProfit(); ...
Issues with trying to sort
- Gumrai replied Jun 2, 2015
I believe that what he means is to start with eg. 30 pip SL, if trade goes 5 pips into profit SL is moved to 25 etc etc
Trailing stop EA for both profit and loss
- Gumrai replied Jun 2, 2015
I believe that you will have difficulties finding someone to code an EA for free when they know that it cannot be profitable. How can you fine tune it? If you do manage to get it coded, you will probably bug the coder for all manner of hare-brained ...
Can someone code this hedging EA?
- Gumrai replied Jun 1, 2015
The gullible are fooled by methods such as this because the account balance keeps rising because the balance only includes closed trades. Equity is the important balance and will just keep dropping because of the cost of the spread, commissions and ...
Can someone code this hedging EA?
- Gumrai replied May 26, 2015
That is decompiled code
I will code your EAs and Indicators for no charge
- Gumrai replied May 24, 2015
I can't believe how large this thread has grown It is sad to see so many newbies actually think this is serious.
Never Lose in Forex - Guaranteed