- MetaTrader 5 Built-in Trading Strategy Tester
- Articles on the development of trading applications
- Trading Signals and Copy Trading
Why do you want to re-event the wheel, while you can get ready made cars here?
Just type scalping in the search (the lens top right) and you will find more than 600 pages (only here): https://www.mql5.com/en/search#!keyword=scalping.
Pick one and amend it according your ideas!

- www.mql5.com
Why do you want to re-event the wheel, while you can get ready made cars here?
Just type scalping in the search (the lens top right) and you will find more than 600 pages (only here): https://www.mql5.com/en/search#!keyword=scalping.
Pick one and amend it according your ideas!
Look at this:
https://www.mql5.com/en/code/20273
You may actually want to read John Bollinger's book on the Squeeze model (pirate copies are floating all over the net).
I myself trade something similar, except based on Bill Williams Fractals and Alligator and manual designation of squeezing and breaking out (you may read his books as well, also plenty of pirate copies available).
Look at ready made expert in Code Base for trade classes and implemented generic trade functions.
In general, look up the Code Base (and Documentation) for code similar to what you want. Most things are already written, you only need to understand them and copy-paste in your "own" code.
Whatever you don't understand look it up in Documentation. MQL Documentation is well written with lots of examples, it will offer the best explanations to most of your future questions.

- www.mql5.com
To be 100% honest with you I would like to learn programming in general, and I don't know how to view the code of even the free scalp bots they have for download. I'd like this adventure to be the first item in my portfolio as a programmer. I appreciate the advice though, those bots sounds amazing. I want the knowledge to program my own in case all of the programmers in the world go extinct one day. I'm starting today at a hello world bot, and from this point will hopefully have the scalp bot of my dreams completed. 89 days to go.
In my opinion it is the best way to learn if you start from a working example and then you start to change this and that. You will be a lot faster than tapping into each trap and pitfall!
Look at this:
https://www.mql5.com/en/code/20273
You may actually want to read John Bollinger's book on the Squeeze model (pirate copies are floating all over the net).
I myself trade something similar, except based on Bill Williams Fractals and Alligator and manual designation of squeezing and breaking out (you may read his books as well, also plenty of pirate copies available).
Look at ready made expert in Code Base for trade classes and implemented generic trade functions.
In general, look up the Code Base (and Documentation) for code similar to what you want. Most things are already written, you only need to understand them and copy-paste in your "own" code.
Whatever you don't understand look it up in Documentation. MQL Documentation is well written with lots of examples, it will offer the best explanations to most of your future questions.
Also guys, I am really trying to create a EA based on strictly price action that involves no indicators. The equation would sound something like this.
I don't know how to put any of this into lines of code yet, but I will hopefully have it down in the next 90 days putting in 2 hours a day learning programming.
*The bot would scan the last 60 minutes of time that has passed every tick (I want to run the bot on the 5 minute time frame as well).
*IF (I just learned about ifthen else statements today as well lol). Anyways, IF the price has been stuck in a tight range, lets just say bouncing back and fourth between 8 pips (since I will be back testing the numbers until the bot is profitable.) I want the EA recognize that price has been stuck in that range for a certain period of time. (minimum amount of time being like 20 min or so like I said I will have to back test these numbers to produce maximum number of winning trades.) Then when price breaks out of that 8 pip range (long or short) that the bot has identified, I want the bot to immediately place an order on the direction it broke out in, as well as place a trailing stop 1 pip below entry and a TP 3 pips above entry. This is of course a rough draft.
Also I would like to somehow create a code that will not let the EA take a trade if the spread is too large.
So far I have learned a tiny bit about MQL4 in the 3 hours I have spent studying the language. Many of the variables above such as the Stop loss, or trailing stop, and the TP levels I think I can put as "EXTERN INTERGERS" but I wonder if the bot will already know that I am talking about PIPS when I say I want take profit at 3 etc... I dont know lol, it really makes my head hurt right now thinking about all the other variables to the situation I will have to include but hopefully it will be well worth the headache.
I think I will make my bot open source and will be posting the code on here for help etc if need be, if that's allowed on the forums anyway.

- www.metatrader5.com
It's very hard to talk with words only.
Maybe you can post the code you have written so far or make a flow chart here: http://draw.io

- draw.io

- www.mql5.com
It's very hard to talk with words only.
Maybe you can post the code you have written so far or make a flow chart here: http://draw.ioThis is a
This is a rough draft of what the idea is, maybe you could help me put it inot a code? I'll ay you to teach me lol
extern double TP = 3;
extern double Lots = 0.01;
extern double TrailingStop = 3;
extern double SL = 1
extern double piprange = 3
extern double timerange = 20 (minutes)
// possible booleon var may include trailing stop of true/false.
//Init or start functions
void on tic
Get HL
High[1]
Low[1]
High[2]
Low[2]
High[3]
Low[3]
High[4]
Low[4]
Start Analysis1
If difference between High[1] and Low[1] <= 3*PIPS (or var pip range)
call Analysis2
Else start over on tic.
start Analysis2
If difference between High[2] and Low[2] <= 3*PIPS (or var pip range)
call Analysis3
Else start over Analysis1 on tic.
start Analysis3
If difference between High[3] and Low[3] <= 3*PIPS (or var pip range)
call Analysis4
Else start over Analysis1 on tic.
start Analysis4
If difference between High[4] and Low[4] <= 3*PIPS (or var pip range)
Call looktotrade function.
if price next tic is <= High[4] and >= Low[4]
then start Analysis1 fuction
if price > High[4], placeorder buy order with SL (or trailing SL) and TP
else if price < Low[4], placeorder sell order with SL (or trailing stops and TP)

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use