![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
whroeder1,
but I am not connected to a broker....
Don't argue - just bring all the mentioned variables on the chart with comment and I guess you'll see!
You can use a simple indicator for that if you don't have access to the code.
Don't argue - just bring all the mentioned variables on the chart with comment and I guess you'll see!
You can use a simple indicator for that if you don't have access to the code.
Carl,
Sorry, I didn't want to come off as argumentative. Just not sure what you meant.
I have attached my EA file, if that helps...
Just add right at the beginning of start():
"\nSwapLong: ",DoubleToString(MODE_SWAPLONG,2)," per Lot,"
"\nSwapShort: ",DoubleToString(MODE_SWAPSHORT,2)," per Lot");
Just add right at the beginning of start():
"\nSwapLong: ",DoubleToString(MODE_SWAPLONG,2)," per Lot,"
"\nSwapShort: ",DoubleToString(MODE_SWAPSHORT,2)," per Lot");
Thanks Carl, I will try that.
I'm running a test at the moment that will take another two days. But will add this to code after and report back.
Thanks for your input!
Thanks Carl, I will try that.
I'm running a test at the moment that will take another two days. But will add this to code after and report back.
Thanks for your input!
Just add right at the beginning of start():
"\nSwapLong: ",DoubleToString(MODE_SWAPLONG,2)," per Lot,"
"\nSwapShort: ",DoubleToString(MODE_SWAPSHORT,2)," per Lot");
That should be
Comment("\nSpread: ",DoubleToString((Ask-Bid)/_Point,0)," in Points,"
"\nSwapLong: ",DoubleToString(MarketInfo(Symbol(),MODE_SWAPLONG),2)," per Lot,"
"\nSwapShort: ",DoubleToString(MarketInfo(Symbol(),MODE_SWAPSHORT),2)," per Lot");
That should be
Comment("\nSpread: ",DoubleToString((Ask-Bid)/_Point,0)," in Points,"
"\nSwapLong: ",DoubleToString(MarketInfo(Symbol(),MODE_SWAPLONG),2)," per Lot,"
"\nSwapShort: ",DoubleToString(MarketInfo(Symbol(),MODE_SWAPSHORT),2)," per Lot");
Or to use the newer syntax:
SymbolInfoDouble(Symbol(),SYMBOL_SWAP_SHORT)
Or to use the newer syntax:
SymbolInfoDouble(Symbol(),SYMBOL_SWAP_SHORT)
Hi,
my backtest is still in progress, so I haven't had a chance to add the recommended script in. However, I had a search through the existing script in Metaeditor, and there is no mention of "swap" anywhere in the code... Does that mean that the EA does not take any kind of swap into consideration?