Algo T / Publications
Forum
What is wrong with my ORDER_TYPE_SELL_LIMIT
The values are: lot = 0.15 retracePrc = 1.23196 slPrc = 1.23409 tpPrc = 1.2277 Also current bid/ask = 1.22720 / 1.22726 This is the code where I try to open a position: myTradingControlPanel.PositionOpen( _Symbol , ORDER_TYPE_SELL_LIMIT , lot, retracePrc, slPrc, tpPrc, "Sell Trade. Magic Number #"
Not enough money - help me understand the basic math
Before any solution code, pls help me understand the basic math. I'm back testing on a $1000 CAD Account trading EURUSD. My broker is AvaTrade and for CAD account trading EURUSD, they list 4.5% as margin: https://www.avatrade.ca/trading-info/financial-instruments-index/forex I want to trade 0.06
How to launch grid search using a batch file, configuration file, and a set file
I'm trying to replicate the Strategy Tester --> Inputs functionality without using the UI. I guess this is called "optimization" in MT5. Basically I want to do a grid search. I've figured out most of it, I have a batch file which calls an .ini which calls a set of parameters using the argument
Getting the close price of a trade that has SL and TP already set
How do I get the close price and close time of a trade after it has hit SL/TP? At entry I do something like this to log the open time information myTradingControlPanel.PositionOpen( _Symbol , ORDER_TYPE_SELL ,lot,currentBid,slPrc,tpPrc, "Sell Trade. Magic Number #" + ( string )