• Stars
    star
    125
  • Rank 286,335 (Top 6 %)
  • Language
    HTML
  • License
    GNU General Publi...
  • Created over 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Expert advisors, scripts, indicators and code libraries for Metatrader.

Metatrader

Expert advisors, scripts, indicators and code libraries for Metatrader.

Manual Test Environment Setup

  1. Install a copy of Metatrader to do your development work in, and create a demo account. You can get Metatrader 4 and a demo account from Oanda, Forex.com, etc.
  2. Create a clone of this repository's master branch on your local machine.
  3. Open Metatrader, in the main menu click File -> Open Data Folder.

Open Data Folder menu item image

  1. Cut and paste the .git folder from your cloned repo into your Metatrader data folder. The .git folder is hidden, so you might need to show hidden files if you don't see it.
  2. Delete the local copy of your clone.
  3. In your git tool of choice, when it is complaining that the repo has disappeared, find the repo in your Metatrader data folder instead of wherever you cloned it to.
  4. Using your git tool, it should show a bunch of changes since you've moved the .git folder. Tell it to undo all of the changes. There should be new files in your data folder now, and the git tool should be saying that there aren't any changes.
  5. Fetch and Pull the latest changes in the master branch of your clone, there shouldn't be any at this point but just in case I checked something in while you were setting up... This should update your Metatrader data folder with all the code. Repeat this whenever you need to get updates of the bots. Let me know if you end up with any files that your git tool thinks you've changed, I'll update the settings to ignore them so you aren't bothered by it. Alternatively, you can just select the file and tell git to undo the changes if you've accidentally edited something.

Dev Environment Setup

Setting up an environment with the intention of editing the source code, and possibly submitting pull requests, is the same as setting up to do manual testing. The only real difference is that you'd fork this repo and clone your fork to your local machine, instead of cloning this repo directly. There's nothing special after that, just the normal git stuff like switching branches will swap out different versions of the source code in your Metatrader terminal (so recompile). Tracking upstream/master in your master branch and merging to your dev branches is just the same as any other standard repo, nothing special to do there.

I do ask that you use the "styler" tool in Metaeditor, use spaces instead of tabs so the formatter will actually work, and that's about it really. If your pull request is accepted then it'll end up as part of this repo, which is totally open source and licensed for basically any use case. If you don't mind other people using your code in commercial products, and not paying you for that, then submit away. I'm building this thing with the express intention of letting people use it for fun and profit, without compensating me. I mean they can if they really want to, I'll take bitcoins or coffee, but it's not a requirement at all. If you're the greedy type who wants to cling to your simple code because nobody is going to pay you for it, then don't submit a pull request and please enjoy this library to your heart's content! :D

More Repositories

1

XULRunner-Examples

Example applications using XULRunner
JavaScript
51
star
2

html-table-of-contents

Generates a table of contents for your HTML document based on the headings present.
JavaScript
25
star
3

XULExplorer

A XULRunner Application IDE of sorts
JavaScript
23
star
4

object-merge

Merges JavaScript objects recursively without altering the objects merged.
JavaScript
16
star
5

cmudict-to-sqlite

A utility for parsing the CMU Pronouncing Dictionary into an sqlite database using Node.js
Roff
7
star
6

object-walk

Walks through an object executing user defined functions at every node on the way down and back up.
JavaScript
6
star
7

atropa-CreateHtmlDocumentsFromXmlhttp

Creates HTML DOM Documents from an XMLHttpRequest objects response text.
JavaScript
2
star
8

directory-transform

Node module for copying and transforming directory contents recursively
JavaScript
2
star
9

atropa-xpath

A JavaScript library providing an Xpath toolkit for manipulating the DOM.
JavaScript
2
star
10

atropa-jslint

A node module wrapper for jslint.
JavaScript
2
star
11

html-to-ssml

A utility for converting HTML to SSML.
JavaScript
2
star
12

atropa-jasmine-spec-runner-generator-html

Generates Jasmine Spec Runner html pages for browser based JavaScript tests.
JavaScript
2
star
13

clone-function

Clones non native JavaScript functions, or references native functions.
JavaScript
2
star
14

AutomationAndTestExperiment

Basic usage of Coded UI and Unit testing on a Windows Forms application in C#
C#
1
star
15

AtropaToolbox-raw-js

The Glorious AtropaToolbox's JavaScript bits
JavaScript
1
star
16

Redirector

A generic stderr and stdout redirector written in VB
Visual Basic .NET
1
star
17

atropa-Exists

Utilities for checking the existence of files and folders using node.
JavaScript
1
star
18

audio-tag-injector

Automatically adds html5 audio elements inline beside links to mp3, ogg, and wav files.
JavaScript
1
star