Steigo:
My question - Is it possible to change the MagicNumber used by the EA using the script (ie. without F7 ...)?
Ideally, MagicNumber 40000 would become 40010, then 40020, on subsquent trades
Yes its possible. Its just a number, you can add/subtract/multiply it.
But I would prefer using comments instead to identify individual trades - just my way.
- Comments can be completely changed by the broker.
- You can change the MN on a chart change (TF, pair, etc) but it should forget all other trades. Why would you want that? And if there are no open trades, they why do you need to change it?
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I have an EA that opens orders based on trendlines I can drag around the chart.
I'd like to quickly reset this EA by applying it to a new chart leaving the lines in place.
I've writen a simple script to delete certain components, leaving the lines.
However, the dupliate MagicNumber (extern variable) prevents me from taking quick trades.
My question - Is it possible to change the MagicNumber used by the EA using the script (ie. without F7 ...)?
Ideally, MagicNumber 40000 would become 40010, then 40020, on subsquent trades