• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 7:36am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 7:36am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Should Trade with Broker offering low spread or wide spread? 12 replies

need help adding spread limit to ea 7 replies

Variable spread vs FIXED spread & broker comment/feedback 6 replies

Adding a decimal point to fix spread calculation? 2 replies

1pips spread is showing as 18 spread, anyway to overcome? 1 reply

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
Tags: Adding spread to price
Cancel

Adding spread to price

  • Post #1
  • Quote
  • First Post: May 18, 2012 5:10am May 18, 2012 5:10am
  •  pgtips
  • | Joined Nov 2007 | Status: Member | 162 Posts
Hi,
on a backtest I can see visually when price touches a line and want to open an order but I need to take into account the spread.

Using the snippet of code below could someone tell me where I would insert the spread which I would define earlier as bid-ask.

I think its price+spread but not having much joy

thank you
Inserted Code
ticket=OrdSend(Symbol(),OP_SELLLIMIT,Lots,Price,Slippage,MyStopLoss,MyTakeProfit,OrderStr,MagicNumber,0,Red);

PG
  • Platform Tech
  • /
  • Adding spread to price
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023