Forum

Pip calculation for Forex, Stocks, and Exotic Forex Not Working

Hey guys I am trying to build an Expert Advisor that simply sets a StopLoss and a TakeProfit based on a set number of pips. Not that complicated. But why in the world is it nearly impossible to do it perfectly for every currency pair and stock? My code is below: double ticksize = MarketInfo ( Symbol

EA that opens orders on both Forex and Indexes

Hey guys, first post here. I am building an EA that needs to work on both Forex and Stock Indexes. For some reason, my StopLoss (pips) and my Lot Size calculation messes up when it comes to the stock indexes. Does anyone have experience building an EA that can handle both Forex and Stock Index