| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Set Break even with Spread - correct? https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3664 |
Page 1 of 1 |
| Author: | genaja [ Wed Jun 04, 2014 8:12 am ] |
| Post subject: | Set Break even with Spread - correct? |
Hi volks, I changed a "Set SL to break even " with BE plus 2x Spread. Is this code correct?
|
|
| Author: | Elixe [ Wed Jun 04, 2014 10:14 am ] |
| Post subject: | Set Break even with Spread - correct? |
Hi Genaja, the spread is already added one time to the SL, if you want to double either remove the marketinfo part and put your (2*spread) or double the marketinfo returned value : Code: Select all Code: Select all |
|
| Author: | genaja [ Wed Jun 04, 2014 1:09 pm ] |
| Post subject: | Set Break even with Spread - correct? |
Hi Elixe, ohhh! MODE_SPREAD is a Value of MarketInfo() !!! What a flashlight! I tried 2*MODE_SPREAD, but that will not work. MarketInfo(Symbol() , MODE_SPREAD) is the same value like Ask - Bid. Thanks a lot, learned a lot :hi: |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|