trader3000
trader3000
Friends

Add friends via their profile or user search and you will be able to see if they are online

trader3000
Added topic Simple way to avoid repetitive code?
Hi Everyone What is the simplest way to set variables in order to avoid the repetitiveness, please? (total means OrdersTotal) if (total== 1 && Bid-PriceS>HT){       ticket= OrderSend ( Symbol (),OP_SELL,Lots*
trader3000
Added topic How to code a dynamic trailingstop that decrements as profit rise?
Hi guys Most of the EA's that I've seen operate on a fixed pip trailingstop.  For every pip the price go in your trade's direction, it adjusts the trailing stop by 1 pip.  So, if your trailing stop gets triggered at say 10 pips and the
trader3000
Added topic Sell trailingstop doesn't work
Hi Everyone I'm brand new to MQL5.  I've managed to migrate all my code from MQL4 and it seems to be fine, but as for my trailingstops, the buy TS works fine, but the sell TS doesn't work at all.  Will someone please have a look at my code
trader3000
Added topic How to increment lot size when Equity drops
Hi Everyone I'm stuck.  I'm trying to write a simple EA that would increase the lot size incrementally by 1 microlot every time that the equity drops incrementally by $200.  So if my starting equity is $1000 and it drops to $800, the lot
trader3000
Added topic Best way to modify lot size of pending orders
Hi Guys Since there is no built in function to modify lot size of pending orders, I suppose the only way to do it is to delete the current pending orders and resend them with the increased lot size.  I am storing the BUYSTOP and SELLSTOP price
trader3000
Added topic How can I determine highest equity for last 10 candles?
Hi Ladies and gents I would like to set the highest equity for the last 10 candles.  I was thinking that I can perhaps use Bars() or Time[] or TimeCurrent() to do this, but I do not know how.  How can I get the EA to store the highest
trader3000
Added topic One function contingent to another condition
Hi, please help.  What is the simplest and easiest way to call a function contingent to a once off trigger/ condition?  For example say that the price hits a certain target and I want to call a function based on this trigger.  What I
trader3000
Added topic Change of direction code
Hi Everyone I'm trying to figure out how to code a direction in price.  Lets say the price is rising, but then changes direction and I want to include both the initial rise and then the decrease.  I think it would look something like this
trader3000
Added topic Possible to have a trailing stop loss on losing trades?
Hi I have a trailing stop on my winning trades that works very well.  Is it possible to have a similar trailing stop on losing trades rather than a hard stop loss .  Can the stop loss be adjusted/ decreased as the price moves in my
trader3000
Added topic How to place multiple trades X pips apart
Hi guys I'm struggling and hope that someone can please point me in the right direction.  Once a trade is open, I would like to open another buy trade if the price moves 10 pips up or another sell trade once the price hits 10 pips below the
trader3000
Added topic How to call certain void functions only at the beginning of Candle formation
Hi Everyone I have two related questions: Question 1. I have tried a number of different ways to limit my EA from running on every tick for certain void functions, but have not had any success.  Some of my void functions only need to get
trader3000
Added topic OrderProfit + Loss & CloseAllTrades doesn't work
Hi Everyone I've been stuck on something for over a week.  No matter what I try, I cannot get this to work.  I want my EA to simply add the profit and loss of two open trades together, and if the combined profit and loss exceeds a certain
trader3000
Added topic Creating an alert when price crosses CCI level
Hi Everyone   I've been struggling to modify an indicator so that it alerts me when the price crosses the upper or lower CCI level (rather than when the CCI indicator line crosses a level).  In other words when Ask>Upper_indicator_level
trader3000
Added topic Trailingstop EA won't work
Hi Everyone.  I cannot get my EA to work properly.  I am running it on 10 different pairs/charts simultaneously.  There seem to be two problems: 1.  It does not trigger the Trailingstop most of the time.  Sometimes it works
trader3000
Added topic Trying to incorporate MaxLots and MinLots into EA
Hi Everyone.  I need help again, please.  I would like to incorporate the following into my EA, but it is completely ignored.  Why does the EA not call the Maxlots function?  When I run the EA on the Strategy tester , the Lotsize
trader3000
Added topic EA won't place pending orders at specified time
Hi Everyone I would like my EA to open two pending orders (straddle) at a specified time e.g. before a news release On demo, nothing happens at the specified StartTime (and no errors), but on the Strategy tester I'm getting error 130, but I can't see
trader3000
Added topic Problem with total amount of open orders
Hi Everyone.  I have tried every bit of advise that I can find on this forum, but none seems to work.  Will someone please help.  I believe the issue lies with my OrderTotal function.  I am trading 10 currency pairs , i.e. I have
trader3000
Added topic Trying to write a Trailing Hedge EA, but I'm stuck - Please help
Hi Everyone EDIT:  I did not receive any help on my original request, so I decided that it might be better to break it down in smaller sections, rather than ask all my questions in one go.  So I have edited this post and would like to start
trader3000
Added topic Trying to combine code for lot size into existing trailing stop EA
Hi   I have tried everything, but I am still unable to get this to work.  I would like to add the following code that I found elsewhere on this forum extern double LotPerThousand= 0.1 ;   // If you had 1000 balance what lot size
trader3000
Added topic Been struggling for 3 weeks to get this basic EA to work - please help
Hi Everyone   While not new to trading, I am new to programming.  I want to learn how to do it and I do have the MQL4 book and reading it.  I thought that I would start with something really simple and basic and use this as a base to
12