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

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Tick Size, Tick Rate, Tick Spread, and Tick Logger indicators 36 replies

How To Trade Using VSA In A Tick Chart? 0 replies

Trading using 110 Tick and 440 tick charts 9 replies

sell previous week high buy previous week low 9 replies

Via indicator: trading xxxyyy via zzz 0 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
Tags: Using Previous tick/Current tick to trade via EA
Cancel

Using Previous tick/Current tick to trade via EA

  • Post #1
  • Quote
  • First Post: Dec 7, 2015 9:13am Dec 7, 2015 9:13am
  •  tuvix2
  • | Joined Mar 2014 | Status: Member | 6 Posts
I am trying to make an Ea that buys when the price moves one tick up and sell when the price moves one tick down

so far i have

double tickCurrent; double tickPrevious = tickCurrent; tickCurrent = Bid;
if (tickCurrent > tickPrevious)

but it still trades the same when price moves up or down

can you please help.

Thanks
  • Post #2
  • Quote
  • Jan 30, 2016 5:08pm Jan 30, 2016 5:08pm
  •  Carpathian
  • | Joined Jun 2014 | Status: Member | 576 Posts
Hello,
Ha-ha, you don't have too much :-) can you please post some more code?
regards -- Aron
 
 
  • Post #3
  • Quote
  • Last Post: Jan 30, 2016 5:26pm Jan 30, 2016 5:26pm
  •  Gumrai
  • Joined Oct 2012 | Status: Member | 1,959 Posts
Inserted Code
  static double tickPrevious = Bid;
  double tickCurrent = Bid;
  if (tickCurrent > tickPrevious)
     {
     //Do stuff
     }
  if (tickCurrent < tickPrevious)
     {
     //Do stuff
     }
  tickPrevious = Bid;
.
Please Do Not PM Me With Coding Enquiries
 
 
  • Platform Tech
  • /
  • Using Previous tick/Current tick to trade via EA
  • 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