@trader-philipps In the past I hit the .mq4 button in the upper left corner, and just followed the prompts on my pc.
How do you compile it your way?
@trader-philipps In the past I hit the .mq4 button in the upper left corner, and just followed the prompts on my pc.
How do you compile it your way?
@trader-philipps I just tried it without the blank spaces and it still doesn't work.
Thank you for the idea, however.
I'm really at a loss here. Do you have any other suggestions?
@trader-philipps I can't compile any of the EA's that I've made in the past. I was able to compile them a week ago, and now I can't.
This is a basic EA I made weeks ago. I am using this one because I know it worked before, therefore I know the problem isn't in the EA itself.
C:\Users\DANFR_~1\AppData\Local\Temp\Canceling all open orders-5.mq4
Application not found
@l-andorrà Thank you for trying. I'll make another post about it.
Yes, but even my fxDreema EA's that I could compile a few weeks ago won't compile now.
Let me add that I am now using the updated version of mt4.
I can't compile anything. I keep getting an "Application Not Found" error.
How do I fix this? Please help!
@ambrogio Good thought. I'll try that. But I can't seem to find "current price" anywhere in the condition block.
@ambrogio Thank you for your thoughts, however, when I have an individual trade on I am able to move my stops forward and backward.
I need my stop-loss orders to follow my trend line (horizontal line on chart) wherever I place my trend line.
The stop-loss orders will move up when I move the trend line up, but the stop-loss orders won't move back when I move the trend line back. Any thoughts?
@roar Thank you for making this! I appreciate it!
Should I just copy this and add it to the EA I'm making?
Side note: I can't copy more than one block at a time anymore. I'm not sure why. Anytime I highlight two or more blocks and right click I don't get the option to copy... only paste. Thoughts?
@roar By "quick motion" I mean moving the stop-loss order line on my chart with my mouse and moving it to where I want.
Here's the work around I'm trying to design:
Drawing a trendline at my average price. [ I figured out how to to this ]
Placing all of my stops based on the location of my trendline. [ I figured out how to to this ]
Moving the trendline with my mouse and having all of the stop-loss orders move with it. [ I have NOT figured out this one]
Any thoughts?
Lets say that:
I'm long four lots on the EUR/USD from different price levels and I'm profitable in the trade.
All of my stops are at my average price.
I want to move all of my stops in one quick motion (to lock in profits).
How can I have 1 stop-loss order of four lots instead of 4 stop-loss orders of one lot?
@josecortesllobat and @ambrogio Thank you both so much for your help! I really appreciate it!
I will try your suggestions and let you know how it goes.
@josecortesllobat Thank you for the suggestion.
How do I use the "no trade" block to make sure I only place four buy orders?
Where do I attach the "no trade" block?
I'm sorry for my delayed response. I was out of town.
But if I use the "on tick" tab then the EA will be constantly putting out buy orders. I only want four buy orders to be placed.
Is there anyway to use both the "On Init" tab and the "On tick" tab in one EA?
Thank you again for your help. This problem is really stressing me out.
@l-andorrà Thank you for your help. I really appreciate it!
I’ve made an EA that places four buy orders above the market, but I can’t get the EA to place a stop-loss order at the average buy price.
I need one stop-loss order at the average price whether I have two entry points , three entry points, or four entry points. Every time the market hits another buy stop I want the EA to move the stop-loss accordingly to my new average buy price.
I also need to be able to move the stop-loss for all four buy stops by moving the red stop-loss line on my chart once. I need one stop-loss order for 4 units, not four stop-loss orders for 1 unit.
Please help me figure this out. Thank you.
(I tried to upload a screenshot of my EA, but it didn't work)