You are on page 1of 68

MOLANISSTRATEGYBUILDER3.

2
UserManual

Molanis
Wehelptraders!
www.molanis.com

HowtoContactMolanis

Web:www.molanis.com

TechnicalSupport:support@molanis.com.CurrentlyMolanisoffersclient
supportinEnglish,French,andSpanish.

Sales:sales@molanis.com

NeedHelp?HaveQuestions?
AskourCommunitywww.molanis.com/forumourreadourFAQat
http://www.molanis.com/support/faq

NeedExamplestostart?
Gotohttp://www.molanis.com/products/molanisstrategybuilder/expert
advisorsformt4

Donotmissourvideotutorialsatwww.molanis.com

COPYRIGHT20092014.Molanis.Thesoftwaredescribedinthisdocumentis
providedunderalicenseagreementwhichcanbefoundattheendofthis
document.

MetaTraderisatrademarkofMetaQuoteswww.metaquotes.net.

MolanisStrategyBuilder|UserManual

TableofContents

MolanisStrategyBuilder3.2.........................................................................................................................5
OVERVIEW...................................................................................................................................................5
FEATURESANDBENEFITS.................................................................................................................................5

10SECONDUSERGUIDE................................................................................................................................6
MINIMUMSYSTEMREQUIREMENTS...................................................................................................................7
INSTALLATION...............................................................................................................................................7
LICENSE........................................................................................................................................................7

GRAPHICALENVIRONMENT.............................................................................................................................9
MAINMENUS................................................................................................................................................9

FileMenu...............................................................................................................................................9
EditMenu............................................................................................................................................10
ViewMenu..........................................................................................................................................10
FormatMenu......................................................................................................................................11
TradingBlocksMenu...........................................................................................................................11
TradingDiagramMenu.......................................................................................................................11
MetaTraderSetup...............................................................................................................................12
HelpMenu...........................................................................................................................................12
TOOLBAR....................................................................................................................................................12

TRADINGDIAGRAM.....................................................................................................................................13
ConfigurationBlock.............................................................................................................................13
TechnicalAnalysis...............................................................................................................................19
LogicBlocks.........................................................................................................................................21
ExecuteOrderBlocks...........................................................................................................................22

MolanisStrategyBuilder|UserManual

TimeControl........................................................................................................................................25
PendingOrders....................................................................................................................................27
AdvancedMoneyManagement..........................................................................................................29
AdvancedCoding.................................................................................................................................30
EASignalBuilder.................................................................................................................................30
VariablesManagement.......................................................................................................................30
NotesBlock..........................................................................................................................................31
EndBlock.............................................................................................................................................31
ConnectingBlocks...............................................................................................................................31
TradingFlow.......................................................................................................................................32
TradingPaths......................................................................................................................................32
MovingAverageStrategy...................................................................................................................34
NextTradeManagement....................................................................................................................36
DynamicStops.....................................................................................................................................39
ImportingCustomIndicatorsintoMolanisStrategyBuilder...............................................................43
SomeMQLReview..............................................................................................................................45
EASIGNALBUILDER.....................................................................................................................................49
Overview.............................................................................................................................................49
Interface..............................................................................................................................................50
GLOSSARY..................................................................................................................................................62
LICENSEAGREEMENT...................................................................................................................................63

MolanisStrategyBuilder|UserManual

MolanisStrategyBuilder3.2

OVERVIEW
MolanisStrategyBuilderforMetaTraderprovidesahighlyintuitivegraphicalenvironmentwith
acomprehensivesetofpredefinedtradingblocksthatletyoudesignexpertadvisorsandforex
signalsinminutes.Nocoding,programmingorMQLknowledgeisrequired.

The click, drag and drop approach of Molanis Strategy Builder allows you to create visual
representations of forex trading strategies and signals as you would with pencil and paper.
These trading diagrams are analyzed automatically by Molanis MQL code generator that
transforms them into ready to use expert advisors. The interactive graphical environment
simplifiesthedesignprocessandeliminatestheneedtowriteMQLcode.

Normally,tocreateanexpertadvisoryouhavetwooptions:1)Youlearn

MQL4 (MetaQuotes Language Version 4) or in the near future MQL5, and


spendalongtimewritingandreviewingcode;2)Youhireaprogrammerand
shareyourtradingideas.
MolanisStrategyBuilderisthethirdoption.Yourbestoption.Itgeneratesall
theMQLcodeforyoumeaningyoucanfocussolelyontheforexstrategyand

notonthecoding.

FEATURESANDBENEFITS
MolanisStrategyBuilderisfullybasedonavisualenvironmentratherthanthetraditional,time
consumingcodingprocess.Itallowsyoutocreateexpertadvisorswithoutwritinganycode.
Reduce the Learning Curve, instead of focusing on learning programming languages like MQL,
justfocusonyourtradingideas.
Molanis Strategy Builder is targeted at nonprogrammers or programmers that want to
dramaticallyreducethedevelopmenttimeofforexstrategiesforMetaTrader(ExpertAdvisors).
Building forex strategies with Molanis Strategy Builder is so easy and intuitive that non
programmerscanstartcreatingexpertadvisorsinminutes.Noprogrammingskillsarerequired.
Easytounderstand.MolanisStrategyBuilderprovidestherightbalanceofcommonsensevisual
tools,whichwillquicklyenableanyonetounderstandanytradingdiagraminminutes.
LeadingEdgeCodeGenerationcreatesalltheMetaTradervariablesforyoutotestandoptimize
yourexpertadvisor.
Designedtoallowexpertadvisorswithmultiplecurrenciesandmultipletimeframes.
MolanisStrategyBuilder|UserManual

Withminimumeffort,itcanbeusedtocreateForexSignals.
Fastdevelopmenttime.Youcanbuildyourownexpertadvisorsinminutes.
Keepyourtradingideastoyourself.Noneedtoshareyourknowledgewithprogrammers.
GivesyouaccesstoMolanisOnlineCommunity,MolanisForumandfreeexpertadvisors.
MolanisStrategyBuilderisprobablythemostadvancedgraphicenvironmentavailabletodayto
create expert advisors. With just a few clicks, you can create complex forex trading strategies
and transform them into fully functional expert advisors. Whether you are new to forex, a
professional trader or a MQL programmer, you can use Molanis Strategy Builder to rapidly
developpowerfulexpertadvisors.

10SECONDUSERGUIDE

TocreateanexpertadvisorforMetaTrader,youneedtocreateatradingdiagram:

ThenyouneedtogeneratetheEA:

MolanisStrategyBuilder|UserManual

AndthenyoutradewithMetaTrader.Itsreallysimple!Thisguideexplainswhatyouneedto
knowtocreatepowerfulexpertadvisorsforMetaTrader.

MINIMUMSYSTEMREQUIREMENTS
TosuccessfullyinstallanduseMolanisStrategyBuilder,youmusthave:

WindowsXP,Professional,Server2003or2008,Vista.
PentiumIVcompatible2GHzprocessor,1GBofRAM,20MBofdiskspace.
Java1.4orhigher.
MetaTraderTerminal(Youcandownloaditfromhttp://www.metaquotes.net/terminal)

INSTALLATION
Firstinstalljavafromhttp://java.com

OnceyouhaveverifiedthatyourPCmeetstheminimumsystemrequirementsrunMolanisSB3
installer.

Duringtheinstallationprocess,itisrecommendedthatyouread,understandandagreetothe
termsandconditionsunderwhichMolanisStrategyBuilderisreleased.

During the process you will be asked for your license information. Type your First Name, Last
Name and your License Key. The License Key is provided to you via email when you purchase
MolanisBuilderStrategy.PleasenotethatBetaVersionscomewithaBetalicensesothisstep
maynotbeincludedintheprocess.

LICENSE
MolanisStrategyBuilderisprovidedunderalicenseagreement.Acopyofthisagreementcan
befoundattheendofthisdocument.

Afreetrialdownloadthatrunsfor10daysisavailable.Thistrialhasonlyafewlimitations.Most
notably,youcannotseetheMQLcodeofyourEA.Youwillbeabletogenerateallthe.ex4files
(compiledeas),fullyfunctionaltotrade,backtestandoptimize.InordertoseetheMQLcode
andallMQ4files,youmustbuyMolanisStrategyBuilderProversionandactivateyourlicense.

HowdoIinstallthelicensefile?
MolanisStrategyBuilder|UserManual

Ifyouhavebeenprovidedwithalicensefile,youneedtoinstallit.
Thelicensefileissentbyemailasanattachment.Thelicensefilenameislicense.xml

Toinstallthelicense,savethelicensefile(license.xml)inthedirectorywhereyouinstalledour
product.ForexampletheStrategyBuilderisinstalledbydefaultinC:\Molanis\Strategy_Builder.

Thus to install the license right click on the attachment, click on save as, search the directory
C:\Molanis\Strategy_Builder, and click on the Save button (Steps may change depending on
youremailclient)

InthedirectoryC:\Molanis\Strategy_Builderyouwillfindanexistinglicense.xmlfile.Thatfileis
theoldordemolicense.Youneedtoreplaceitwiththenewlicensefile.SoclickonYeswhen
askedDoyouwanttoreplaceit?

AfterthelicenseisinplaceyouneedtosetupMolanisconnectiontoMT4.Pleaselookat:
http://www.molanis.com/images/stories/molanis/mt4setupMolanis.pdf

MolanisStrategyBuilder|UserManual

GRAPHICALENVIRONMENT
MolanisStrategyBuilderhasbeendesignedtobeintuitiveandeasytouse.Tocreateaforex
strategy,justdragtradingblocksfromtheTradingBlockLibraryanddropthemintoaTrading
Diagram.

MAINMENUS

Themainmenuislocatedundertheprogramheadingandhasallthecommandsandfunctions
youneedtobuildyourforexstrategy.

FileMenu
Thismenuincludescommandsforcreatingnewfiles(.molfiles),storingyourforexstrategyand
printingoptions.

MolanisStrategyBuilder|UserManual

New

Createsanewtradingdiagram.

OpenFile

Opens an existing strategy (.mol file) already created in Molanis Strategy Builder.
The initial installation comes with a basic moving average strategy but additional
freestrategiescanwefoundatwww.molanis.com

Savesthecurrenttradingdiagram.

Save
SaveAs

Download
Examples
Print
Exit

Allows you to save your trading diagram with another name and/or in another
folder.Italsogivesyouthepossibilityofsavingyoutradingdiagramasanimage.

TakesyoutoourexamplespageatMolanis.com

Printsthecurrenttradingdiagram.

ExitsMolanisStrategyBuilder.

EditMenu
Thismenuincludescommandsthatwillhelpyoumodifyyourcurrenttradingstrategy.
Undo

Reversesthelastactionexecutedtoyourtradingdiagram.

Redo

Redothelastactionexecutedinyourtradingdiagram.

Cut

Removesthecurrentselection.

Copy

Createsareplicaofyourcurrentselection.

Paste

Pastetheselectionyouhavealreadycutorcopied.

Delete

Removesyourcurrentselectionfromthetradingdiagram.

SelectAll

SelectalltheTradingBlocksinyourcurrenttradingdiagram.

SelectAll
Selectalltheconnectors(lines)inyourcurrenttradingdiagram.
Connectors

ViewMenu

Grid

Rulers

Zoom

ZoomIn

ZoomOut

Page

Turnsthegridonandoff.Acheckmark()nexttothefunctionindicatesthatthegridis
visible.
Turns the rulers on and off. A check mark () next to the function indicates that the
rulersarevisible.
Increases or decreases the size of the current trading diagram to a fixed percentage:
400%,200%,100%,75%,and50%
Increasesthesizeofthecurrenttradingdiagram.
Decreasesthesizeofthecurrenttradingdiagram.
Showsthecurrenttradingdiagraminonepage.

MolanisStrategyBuilder|UserManual

10

Width
Adjuststhecurrenttradingdiagramsizetothewidthofthescreen.

ActualSize Showstheactualsizeofthecurrenttradingdiagram.

FormatMenu
Theformatmenudisplaysformattingoptions.

Text

Includesthefollowingfunctions:

FontColor:ChangestheFontcoloroftheselectedtext

Rotate:Rotatestheselectedtext.

Position: Move the selected text to the desired position within the trading
block.Horizontalposition:top,middleorbottom.VerticalPosition:left,center
orright.

Connector
Showsformattingoptionsforconnectingarrows,suchasLineColor,Linewidth
and dashed or continuous line option. Line types include Straight, Horizontal,
andVertical,Curve.

TradingBlocksMenu
Showsthedifferentoptionsthatallowyoutoorganizethetradingblocksinthetradingdiagram.
ToBack

ToFront

Align

Positiontheselectedtradingblockatthebackofothertradingblocksortext
boxes(Notes)
Positiontheselectedtradingblockatthefrontofothertradingblocksortext
boxes(Notes)
Alignstheselectedtradingblockstothedesiredposition.Horizontal:left,right,
center.Vertical:top,middle,bottom.

TradingDiagramMenu

Show/HideMetaTraderVariables Shows/HidetheMT4icon

Show/HideMoneyManagement Shows/HidetheMoneyManagementicon

ValidateDiagram
Checks the consistency of the trading diagram. It alerts when trading
blocksaremissingconnectionsorchangesonparametersareneeded.

GenerateMQL4codeCreatesthecodeoftheforexstrategytobeusedwithMetaTrader.Two
filesarecreated,oneMQ4(code)andoneEX4(compiledcode).

Layout
Helpsyoutoautomaticallyorganizeyourtradingdiagram.

MiniDiagram
Showsaminimizedversionofthetradingdiagramatthebottomleft
cornerofthescreen.Acheckmark()nexttothefunctionindicates
thattheMiniDiagramisvisible.

MolanisStrategyBuilder|UserManual

11

Grid

Changesgridstyle:gridsize,gridcolor,andgridtype.

MetaTraderSetup
UsedtosetuptheMetaTraderlocationinyourpc
MetaTraderDirectory

SetsthedirectorywhereMetaTraderisinstalled

HelpMenu
OnlineHelp

SoftwareUpdates

TakesyoutoMolanisStrategyBuilderhelppagethatdescribestheproducts
features,tradingblocks,andprovidesexamplesofcommonforexstrategies.

ConnectsyouwithMolaniscommunityforumatwww.molanis.com/forum

Allowsyoutoreportbugsorrequestnewfeatures

ChecksforthelatestreleaseofMolanisStrategyBuilder

BuyMolanisstrategy
Builder

AllowsyoutobuyalicenseforMolanisStrategyBuilderat
www.molanis.com

LicenseInformation

Showslicenseinformationandexpirationdateifapplicable

AboutMolanisStrategy
Builder

ShowstheversionofMolanisStrategyBuilderrunning

MolanisCommunity
ReportBugorRequest
Enhancement

TOOLBAR
TheToolbarprovideseasyaccesstothemostfrequentlyusedoptions.

Tip:Ashortdescriptionofthefunctionappearswhenyoumovethemouseovereach
icon

Thefunctionsthatyouwillfindinthetoolbarare:

FileOptions New,Open,Save,Print

EditOptions Cut,Copy,Paste,Delete,Undo,Redo

FontOptions Fonttype,Fontsize,Bold,Italic

FormatOptionsTextpositioning,FontColor,LineColor,BackgroundColor(fortext
boxes/Notes)

MolanisStrategyBuilder|UserManual

12

ViewOptions Zoom

TRADINGDIAGRAM
Atradingdiagramisagraphicalrepresentationofatradingalgorithm,forexstrategyorexpert
advisor. It shows the flow through a trading decision system. Trading diagrams are made of
tradingblocksthatareconnectedtocreatecomplexforexstrategies.

Tocreateatradingdiagram,youonlyneedtoaddthetradingblocks,set
theirconfigurationparametersandmakethenecessaryconnections.

MolanisStrategyBuilderincludesanumberoftradingblocksusedwhenmodelingatrading
strategy.Theseinclude:

ConfigurationBlock

START

Tradingblockthatindicateswheretheforextradingstrategy
starts.TheSTARTiconalwaysappearsatthetopofthe
tradingdiagram.

TheSTARTtradingblockallowstheforexstrategy(Expert
Advisor)setup.Ithasthreemaingroupsofoptions:

a. GeneralOptions
b. TradingOptions
c. BasicMoneyManagementOptions

ToaccesstheconfigurationoptionssimplydoubleclickontheSTARTtradingblockand
youwillbepromptedwiththefollowingscreen:

MolanisStrategyBuilder|UserManual

13

When the Expert Advisor code is generated, the options on the START trading block are
transformedintoMT4variables.ThismeansthateachvariableintheSTARTtradingblockhasan
equivalentvariableonMetaTraderasshowninthefollowingchartfromMT4:

a. GeneralOptions

OPTION

AccountType

DESCRIPTION

SelectyouraccounttypebetweenMicro
andStandard.

VARIABLEONMT4

IsMicroAccount=True
Defineifaccountismicroorstandard.True
meansyouraccountisMicroAccount.False
meansitisaStandardAccount.

MolanisStrategyBuilder|UserManual

14

OPTION
DESCRIPTION

ExecutionMode CompletedBars:Executioneverytimea
fullbariscompleted.EveryTick:
Executioneverytimeatickisreceived.

ExecutionType

eMailMode

PlaySound

Trade:Allowstrading.Alert:Doesnot
allowtrading.Instead,itshows/sends
emailswithalerts.

Sendsemailswiththeorderexecution
informationand/orwarnings.
Playsasoundwhenorders/alarmsare
executed

VARIABLEONMT4

CompletedBars=True
Defineexecutionbybarsorticks.Truemeans
EAisexecutedeverytimeafullbaris
completed.FalsemeansEAisexecutedevery
timeatickisreceived.

TradeOrAlert=False
Defineexecutiontype.Trueallowstrading,
FalsesendsAlerts.
SendMailMode=False
WhenTrue,TheEAsendsemailswithorder
executioninformation
PlaySounds=True
PlaysasoundwhenTrue.TheMT4variable
MySoundallowsyoutochangethesoundto
beplayed.

ForexSignals:Turnyourexpertadvisorintoatooltoadviseyouofmarket
changes and trading opportunities. Just change the Execution Type option
fromTradingtoAlertandyourexpertadvisorwillsendyoualertsinsteadof
trading. Alerts include sounds, a standard MetaTrader popup alert, and
emails.

b. TradingOption

OPTION

TradingTimeFilter

TradingHoursStart

TradingHoursEnd

DESCRIPTION

Allowstoopen/closepositionsaccording
toaSERVERtime(hour)filter.IfON,you
needtosetTradingHoursStartand
TradingHoursEnd.Thisfeatureappliesto
thewholeEA.Ifyouwanttohaveatime
filterforonetradingconditionyouneed
touseatimeicon(explainedlater)

EAtradesonlywhenSERVERtimeis
betweentradinghoursstartandtrading
hoursend

i.e.Totradefrom9amto4pmTrading
HoursStart=9andTradingHoursEnd=16

VARIABLEONMT4

UseTradingTime=False
IfTrue,tradesonlywhen
tradingtimestart<hour<
tradingtimeend

TradingTimeStart=9
i.e.9=9am

TradingTimeEnd=16
i.e.16=4pm

MolanisStrategyBuilder|UserManual

15

OPTION

Actionbefore/after
tradinghours

Buy/Sellorders
includeTP/SL

DESCRIPTION

Define whether you want to close all


positions when the server time is not
between trading hours. This new feature
could be used to close all positions after
thetradinghourshavepassed.

Some brokers require that your Buy/Sell


orders do not include TP (Take Profit)/SL
(StopLoss).Theseareaddedlater.

MaximumNumber
ofPositions

Controlsthemaximumnumberof
simultaneousopenpositionspercurrency
pair

NumberofRetry
AttemptsforOrder
Execution

NumberoftimestheEAretriesto
executeanorderwhenservererrorsare
detected

BuyColor

Colorusedfortheiconthatidentifiesbuy
ordersontheMetaTraderchart

Colorusedfortheiconthatidentifiessell
ordersontheMetaTraderchart

AdjustsTakeProfit(TP)andStopLoss(SL)
levelsabovetheminimumlevelallowed
bytheMT4server

SellColor

Automatically
AdjustSL/TPto
ServerAccepted
Levels

VARIABLEONMT4

ClosePositionsNonTH=True
IfClosePositionsNonTH=True,all
openpositionswillbeclosed
after/orbeforetradinghours.

OrderIncludeTPSL=True(trythis
optionfirstsincesomeECNbrokers
accepttheTPandSLbutprocessit
later)
IfFalse,ordersareopenedandlater
TP/SLisadded.
MaxNumberofPositions=1
Allows1openpositionpercurrency
pairand1pendingorder.Ifyou
hedge,itallows1longand1short
position

MaxOrderRetry=100
Ifthereisanerrorexecutingorders,
thescriptretriesMaxOrderRetry
times

BuyColor=Green
Colortoidentifybuyorders

SellColor=Red
Colortoidentifysellorders

AutoAdjustSLTP=True
ToturnOn(True)/Off(False)auto
adjustment.AdjustsSLtothree
timestheminimumSLallowed.
Pleasenotethatthisoptionwas
depreciated.Itisthereforhistorical
reasons.

c. BasicMoneyManagementOptions

OPTION

DESCRIPTION

Maximum
PercentageatRisk

Allowsto setamaximumpercentageof
yourequityatriskperposition.IfON,you
needtosettheMaximumPercentageat
RiskValue

VARIABLEONMT4

UseMaximumPercentageatRisk=
False
Turnson/offmaximumrisk
condition

MolanisStrategyBuilder|UserManual

16

OPTION

DESCRIPTION

Maximum
PercentageatRisk
Value

Avalueof2=2%means thatanyposition
thatriskmorethan2%ofequitywillbe
adjustedto2%reducingthelotsize

Usedtodeterminethelevelofriskina
trade.IfON,youneedtosetRewardRisk
RatioValue.THISOPTIONWILLBE
DEPRECIATEDSOON.

RewardRiskRatio I.e.RewardRisk=TakeProfit/StopLoss.If
Value
RewardRisk=3andTakeProfit=30pips
thenStopLoss=30/3=10pips.Youmake
30pipsperwinningtradeandlose10pips
perlosingtrade.THISOPTIONWILLBE
DEPRECIATEDSOON.

LotManagement
Lotmanagementreducesthelotsizeafter
oneormoreconsecutivelosses.Youneed
toselectthelotmanagementtypeand
reductionfactor.Donotusethisoptionif
youareusingmartingale(explainedlater)

LotManagement
Type1:Lotdecreasesbyequation[lot
Type
(lot*numberofconsecutivelosses/Lot
ReductionFactor)]
Type2:Lotisreducedusing25%steps
(75%,50%,25%)

LotReduction
i.e.Whenlot=10,consecutivelosses=2
Factor
andLotReductionFactor=4,reduction
equationgivestheadjustedlotsize=10
(10*2/4)=5

RewardRiskRatio

VARIABLEONMT4

MaximumPercentageatRisk=2
i.e.maxsizeoftrade=2=2%of
equity

UseRiskRatio=True
Turnson/offriskratio

RiskRatio=3
i.e.RiskRatio=3meansthat
TakeProfit/StopLoss=3

UseLotManagement=True
Turnson/offlotmanagement

LotManagementType=1
1setsType1,2setsType2

ReductionFactor=4
Formoneymanagement,lotis
reducedaccordingtotheequation:
lot(lot*numberofconsecutive
losses/ReductionFactor)

IfyouwanttouseMartingaleseeAdvancedMoneyManagement.

AdditionalMT4variables:

EAName,itsvalueissettothefilenameofyourstrategy(.molfile).

Slippage,setat3pips.

PairVariables,MolanisStrategyBuilderautomaticallycreatesvariablesforeachcurrencypair
includedintheforexstrategy.Thesevariablescontainvaluesforlotsize(LS),takeprofit(TP),
stoploss(SL)andtrailingstops(TS).I.e.ForaEURCADstrategy,typicalvaluesinclude:
S_EURCAD_LS_0,S_EURCAD_TP_0,S_EURCAD_SL_0,S_EURCAD_TS_0,B_EURCAD_LS_0,
B_EURCAD_TP_0,etc

MolanisStrategyBuilder|UserManual

17

Pairvariablesareconstructedusingthefollowingstandard:
OrderTypeFirstletter(BuyorSell)+CurrencyPair+VariableUse(LS,TP,SL,
TS)+ReferenceNumber
i.e.S_EURCAD_LS_0isavariableforaSellorder,forEURCAD,andhasthevaluefor
theLotSize.B_EURCAD_TP_0isavariableforaBuyorder,forEURCAD,containing
the Take Profit Value. Use these variables to optimize your EA when backtesting
yourstrategyinMetaTrader.

4and5digitssupport:Forthosethatarestilltradingwith4digitbrokers,weaddedavariableto
changetheeadigitnumber.InMetaTrader,clickontheexpertsproperties.UndertheInputstab,
changethevariableFiveDigitstoFalseifyouusea4digitbroker.UseFiveDigits=Truefor5digit
support.Bydefaulttheeasaregeneratedusing5digitssupport.

ForCFDorinstrumentswithnone,one,ortwodigitsuseFiveDigits=False

Hedging: If Hedge = True, the EA will hedge. It will open short and long positions at the same
time.IfHedge=Falsebeforegoinglong(buyingacurrencypair)thesoftwarewillcloseallshort
positions; and before going short (selling a currency pair) the software will close all long
positions.IfyouarehedgingyouneedtousetheCLOSELONG(CL)andCLOSESHORT(CS)icons
tocloseexistingpositions.

Advanced Trailing Stops: By default if you trade using bars, trailing stops are evaluated using
bars;orifyoutradeusingticks,trailingstopsareevaluatedusingticks.Ifyouwantadifferent
behavioryoucanusetheadvancedtrailingstops:
1.ChecktrailingstopsregardlessofthedefinitionintheExecutionMode:Soyoucantradeusing
barsbutevaluatetrailingstopseverytick.ThisfeatureisavailableinMT4,undertheeainputs.If
CheckTSEveryTick=True,trailingstopsareevaluatedeverytick.IfCheckTSEveryTick=False,trailing
stopsevaluationwilldependonthedefinitionoftheExecutionMode(ticksorbars)
2. Time Based Trailing Stops: This feature allows evaluating the trailing stops every n minutes,
wherenisdefinedbythetrader.Sonow,youcantradeusingonehourbarsandevaluatethe
trailingstopsevery30minutes(oranytimeframedefinedbytheuser).Toaccessthisoption,in
MT4gototheexpertadvisorinputandsetUseTimeBasedTS=TrueandTimeBasedTS=30(or
anytimeframei.e5for5minutes,10for10minutes,30for30minutes).Pleasebearinmind
thatMT4backtestingusesafixedtimeframesoyoucannotbacktesttimebasedtrailingstops.,

MetaTradervariablesareusedtotest,optimize,andbacktestyourexpertadvisorinMetaTrader
without having to edit your strategy with Molanis Strategy Builder. For example, changing
UseTradingTimevariableonMetaTraderfromFalsetoTruecreatesatimefilterforyourtrades.
ThismeansthatyourEAwilltradeonlywhentheServerTimeisbetweenTradingTimeStartand
TradingTimeEnd.

MolanisStrategyBuilder|UserManual

18

If you want to find the best trading time for your EA simply backtest your forex strategy
optimizingthevariablesTradingTimeStartandTradingTimeEnd.

TechnicalAnalysis

TA

TheTATechnicalAnalysistradingblockallowsyoutocreate
tradingconditionsusingwellknowntechnicalindicators.Itis
thekeybaseforthedevelopmentofforexstrategies.

To create a trading condition, edit the Technical Analysis trading block (TA), select a technical
indicator from the list on the left. Then set up the indicator parameters. Repeat the same
procedurefromthelistontheright.FinallyselectoneofthecomparisonoptionsandclickOK.

MolanisStrategyBuilder|UserManual

19

WellknowntechnicalindicatorsareavailabletobeusedComparisonOptions

The Trading Condition on the previous graph can be described as: Condition is true if the Ask
PriceforUSDCADishigherthan1.07866.

Currently,MolanisStrategyBuilderhasthefollowingtechnicalindicatorsavailable:

Accelerator/DeceleratorOscillatoriAC
Accumulation/DistributioniAD
AlligatoriAlligator
Ask
AverageMovementDirectionalIndexiADX
AverageTrueRangeiATR
AwesomeOscillatoriAO
BearsPoweriBearsPower
Bid
BollingerBandsiBands
BullsPoweriBullsPower
CloseiClose
CommodityChannelIndexiCCI
CustomIndicatoriCustom:TolearnhowtousecustomindicatorsseeImportingCustom
IndicatorsintoStrategyBuilder
DeMarkeriDeMarker
EnvelopesiEnvelopes
ForceIndexiForce

MolanisStrategyBuilder|UserManual

20

FractalsiFractals
GatorOscillatoriGator
HighiHigh
IchimokuKinkoHyoiIchimoku
LowiLow
MarketFacilitationIndexiBWMFI
MomentumiMomentum
MoneyFlowIndexiMFI
MovingAverageiMA
MovingAverageofOscillatoriOsMA
MovingAveragesConvergence/DivergenceiMACD
OnBalanceVolumeiOBV
OpeniOpen
ParabolicSARStopandReverseSystemiSAR
PercentRangeiWPR
RelativeStrengthIndexiRSI
RelativeVigorIndexiRVI
StandardDeviationiStdDev
StochasticOscillatoriStochastic
UserDefinedPriceUserPrice

TA+

AdvancedTechnicalAnalysisicon(TA+),similartoaTAiconbut
includesthepossibilitytouseMetaTradervariables(createdin
the MTVAR icon) so you can create and optimize powerful
expertadvisors.

LogicBlocks

AND

Producesavalueoftrueifandonlyifbothofits
precedingtradingblocksaretrue.

MolanisStrategyBuilder|UserManual

21

OR

Producesavalueoftruewheneveroneormoreofits
precedingtradingblocksaretrue.

ExecuteOrderBlocks

BUY

ExecutesaBuyOrder.Youneedtoselectthecurrencypair,Lot
Size,andthepipvalueforTakeProfit,StopLoss,andTrailing
Stop.(Avalueofzeropipsmeansdonotusethisoption)

SELL

ExecutesaSellOrder.Youneedtoselectthecurrencypair,
LotSize,andthepipvalueforTakeProfit,StopLoss,and
TrailingStop.(Avalueofzeropipsmeansdonotusethis
option)

MolanisStrategyBuilder|UserManual

22

BUY and SELL icons have the new Next Trade Management option, it allows users to create
more complex trading conditions. If you are just starting to use this product use the Default
option.SeeNextTradeManagementformoreinformation.

BUY+

ExecutesaBUYOrder.Youneedtoselectthecurrencypair,Lot
Size,andthepipvalueforTakeProfit,StopLoss,andTrailing
Stop.(Avalueofzeropipsmeansdonotusethis
option)
YoucancreatevariablesforMetaTraderintheMTVARicon
andthenusethemintheBUY+icon.Thusyoucancreate
variablestocontrolandbacktesttheLotSize,andthepipvalue
forTakeProfit,StopLoss,andTrailingStop.
YoucanalsosetdynamicstopsusingtheATRandStandard
Deviationindicators.i.e.AnATRtakeprofitstopisplacedat
entryprice+theroundnumberof(ATRinpips*Multiplier).
Formoreinformationreadthedynamicstopssectionlaterin
thisguide.

ThemaindifferencebetweenaBUYandaBUY+iconisthat
BUYiconsdonotallowvariablesordynamicstops.

SELL+

ExecutesaSellOrder.Youneedtoselectthecurrencypair,Lot
Size,andthepipvalueforTakeProfit,StopLoss,andTrailing
Stop.(Avalueofzeropipsmeansdonotusethis
option)
YoucancreatevariablesforMetaTraderintheMTVARicon
andthenusethemintheSELL+icon.Thusyoucancreate
variablestocontrolandbacktesttheLotSize,andthepipvalue
forTakeProfit,StopLoss,andTrailingStop.
YoucanalsosetdynamicstopsusingtheATRandStandard
Deviationindicators.i.e.AnATRtakeprofitstopisplacedat
entrypricetheroundnumberof(ATRinpips*Multiplier).For
moreinformationreadthedynamicstopssectionlaterinthis
guide.

MolanisStrategyBuilder|UserManual

23

ThemaindifferencebetweenaSELLandaSELL+iconisthat
SELLiconsdonotallowvariablesordynamicstops.

CloseOpenPositionsBlocks

CLOSE
LONG

Closesalllongpositionsfortheselectedcurrencypair

CLOSE
SHORT

Closesallshortpositionsfortheselectedcurrencypair

MolanisStrategyBuilder|UserManual

24

TimeControl

TIME

Thisicongivesuserstotalcontroloftimetrading.It
allowsthesetupoftradingconditionsbasedondays
of the week, hours and minutes. Please note that
the time feature in the START icon controls time
settings for the EA and the TIME icon gives more
controlonthetradingconditions.Weadvisetouse
theTIMEiconusinganANDtojoinaTAiconanda
TIMEicon.

Fortimefiltersyouhave3options:
1.YouusetheSTARTicon
2.YouuseaTIMEicon
3.Youuseboth

For1)IntheSTARTiconyoudefineatimefilterforthewholeea.Theeaworksiftheservertimeisin
thetimefilter(betweenXhourandYhour).TheSTARTiconhasanoptionthatyoucansettocloseall

MolanisStrategyBuilder|UserManual

25

positionswhentradingtimeisoutofthetimefilter(beforeXandafterY).Againthisappliestothe
wholeexpertadvisor.
For2)Youdon'tusetheSTARTicon,insteadeachconditionsintheeauseaTIMEiconconnectedtoaTA
(orTA+)iconusinganAND.

YoucanuseaCLorCSiconconnectedtoaTIMEicontoclosepositions(makesuretheTIMEiconthat
openspositionsdoesnotoverlapwiththeTIMEiconthatclosespositions).Oryoucanusethetimeicon
onitsown(i.e.BUYonMondayat10am)
For3)YouusetheSTARTicontoclosepositionsoutofthetimefilter(betweenXhourandYhour)and
usetheTIMEicontoopenpositions.ThisrequiressynchronizingSTARTandTIMEtoavoidundesired
overlaps.
ThechartbelowshowsasimpleMAStrategythattradesfromMondaytoWednesday,usesvariables
anddynamicstops.

MolanisStrategyBuilder|UserManual

26

PendingOrders

BUYP

PendingBuyicon:ExecutesaBuyStopattheAsk
price+abuffer(offsetinpips)orExecutesa
BuyLimitattheAskpriceabuffer(offsetin
pips).
BuyLimitisapendingordertobuyacurrency
pairatapricelowerthanthecurrentprice.The
orderwillbeexecuted(modifiedintomarket
orderBuy)iftheAskpricereachesorfallsbelow
thepricesetinthependingorder.BuyStopisa
pendingordertobuyacurrencypairataprice
higherthanthecurrentprice.Theorderwillbe
executed(modifiedintomarketorderBuy)if
theAskpricereachesorrisesabovetheprice
setinthependingorder.

MolanisStrategyBuilder|UserManual

27

SELLP

PendingSellicon:ExecutesaSellStopattheBid
priceabuffer(offsetinpips)orExecutesa
SellLimitattheBidprice+abuffer(offsetin
pips).SellLimitisapendingordertosella
currencypairatapricehigherthanthecurrent
one.Theorderwillbeexecuted(modifiedinto
marketorderSell)iftheBidpricereachesor
risesabovethepricesetinthependingorder.
SellStopisapendingordertosellacurrency
pairatapricelowerthanthecurrentone.The
orderwillbeexecuted(modifiedintomarket
orderSell)iftheBidpricereachesorfallsbelow
thepricesetinthependingorder.

DELP

DeletePendingicon:Deletespendingorders.

Alert

In the Alert icon you can create your own custom


alerts. It manages several options to show the
alerts: MT4 alerts, print alert to logs, print alert to
the charts, or send emails. This icon gives a better
controlofAlerts.

With the Strategy Builder you have two options to


usealerts.IfyouwantyourEAstoshowalertsand
stop trading, in the START icon set the option
ExecutionTypetoAlert.IfyouwantyourEAtotrade
and/orshowalertsyoucanusetheAlerticon.

MolanisStrategyBuilder|UserManual

28

AdvancedMoneyManagement

MM

Martingale (Money Management) is our latest


money management feature. To use it go to the
Trading Diagram menu, and click on Show/Hide
MoneyManagementtoseetheiconMM.Clickonit
and then set the martingale parameters. Anormal
martingaleinforexwilldoubleyourlotsizeaftera
loss.Weaddedsomeinterestingoptionsforyouin
thenewMartingaleicon:
Martingale Multiplier: Instead or just doubling the
lot size you can control the lot size using the
martingalemultiplier.Ifthemultiplierisequalto2,
the lot size will double. If it is equal to 1.5, the lot
sizewillincrease50%.It'suptoyoutodefinehow
youwantthelotsizetogrow.
Normal Martingale, Anti Martingale and Semi
Martingale:Thenormalmartingaleincreasesthelot
size after a loss, the anti martingale increases the
lot size after a profit. SemiMartingale is a
martingale where you control the lot size (in our
case using the martingale multiplier). A mixed
martingaleisalsoavailablewherethelotincreases
afteralossandafterprofit.
The Maximum lot size option to control the
martingalefeature.
Martingale should be used with care. We do not
recommend to use martingale with a real trading
accountsinceitistoorisky.

MolanisStrategyBuilder|UserManual

29

AdvancedCoding

MQL

To manage custom MQL trading conditions. Even


thoughsomecodingknowledgeisneeded,wemade
life easier adding a code editor for rapid
development. With the MQL icon, you can insert
your own MQL code and get more control of your
tradingconditions.

MQL+

DeveloperscanaddtheirownMQLcodetohavefull
controloftheExpertAdvisor.Whatisthedifference
withtheMQLicon?
The MQL icon is used to add MQL code to create
tradingconditions.Thusitneedstobeconnectedto
an icon to execute an action i.e. BUY or SELL. The
MQL+ is used to add any kind of MQL code so it is
notconnectedtoanyothericons.

SB

TheEASignalBuilderisaniconthatusesthelatest
technology of visual coding so you can create your
trading signals visually. It is so powerful that this
userguidehasonechapterexplaininghowtouseit.
Seepage43.THISICONISONLYAVAILABLEINPRO
VERSIONS.

EASignalBuilder

VariablesManagement

MTVAR

MetaTrader Variables icon used to create variables


tooptimizeindicatorsduringbacktesting.Justgoto
theTradingDiagrammenu,thenclickonShow/Hide
MetaTrader variables to see the MTVAR icon. Click
on the MTVAR icon, add your own MT4 variables.
Then use them in any TA+ icon. Variables will be
available in MetaTrader for optimization during
backtestingorundertheexpertadvisors'inputtab.
When creating variables make sure you use unique
names. For examples using variables names like
variable1andvariable2isnotrecommended.

MolanisStrategyBuilder|UserManual

30

NotesBlock

NOTES

Allowsyoutowriteyouownnotesabouttheforex
strategy.Alsocalledtextbox.

ToaddtexttoaNoteortextbox,selectitandstarttyping.Yourtextwillappearinside.Inthe
toolbar, you can find formatting options to change the font size, font type, color, and
background.

EndBlock

END

TradingBlockthatindicateswherethestrategy
finishes.AlltradingflowsmustendattheEND
block.

ConnectingBlocks

CONNECTING Connectingarrowslinktradingblocksand
ARROWS
definetradingflowdirection.

MolanisStrategyBuilder|UserManual

31

To connect two trading blocks, click one of the blocks you are trying to connect and without
lettinggoofthemousedragthearrowtotheotherblock.Iftheconnectingarrowisgreen,the
connection is allowed. A red arrow indicates that the connection is not possible. When you
releasethe mousebutton,thelinkis created.Onceconnected,tradingblocksstayconnected,
eveniftheyaremoved.Alltradingblocksshouldbeconnected.Theonlyexceptiontothisruleis
theNotesblockortextboxesthatdonotconnectedtoanytradingblocks.
Bydefault,connectingarrowsarecurvedbutyoucanchangetheirformatontheFormatMenu
>Connector.

TradingFlow
ATradingFlowisapipelinethroughwhichticksflow.Itshowshowtheprice(ticks)movefrom
the START block to the END block passing through interconnected trading blocks. Connecting
arrowsrepresentthedirectionoftheflow,whichalwaysinitiatesintheSTARTblockandfinishes
attheENDBlock.

The flow of the trading diagram allows a reader to understand the trading strategy: what
operationswillbeperformed,inwhichorder,andunderwhatcircumstances.

TradingPaths
TradingpathsarethepossiblepathsformedwhengoingagainstthetradingflowfromtheEND
totheSTARTblock.Iflogicconditionsarepresent(ANDOR),theprecedenttradingblocksare
consideredtobepartofthesametradingpath.

In this part of a trading diagram, the trading


flow moves from TA to AND, ending at BUY.
Thetradingpathhelpsustoreadthediagram,
startingfromtheBUYblock:

Buy 1 lot of USDCAD (Take Profit of 100 pips)


whentheaskpriceishigherthan1.07866AND
themovingaverageconditionistrue(theshort
periodmovingaverageisabovethelongperiod
movingaverage)

Trading paths are independent for you to have major control of your forex strategy. However
this means that you have to design coherent trading strategies. For example, the following
tradingdiagram,althoughwellconnected,isnotacoherentstrategy.Itcanbereadas:
BuyandSellatthesametime,1lotofEURCAD(witha100piptakeprofitand50pipstoploss)
whentheshortperiodmovingaverage(9)isabovethelongperiodmovingaverage(18).

MolanisStrategyBuilder|UserManual

32

Molanis Strategy Builder does not check for coherence. It is therefore your responsibility to
developaclearunderstandingofyourforexstrategy.
Price Action MultiCurrency Trading Diagram: You can create trading diagrams that generate
multitimeframe,multicurrencyEAs

MolanisStrategyBuilder|UserManual

33

MultitimeframeandmulticurrencyEAs:Ifyouarenotcreatingmultipair
or multitimeframe EAs use the options Current Symbol and Current
TimeframethiswayyourEAwillworkforanypairinanytimeframe.Thus
thepreviousexamplewillworkbetterifinsteadofEURCADyouuseCurrent
Symbol.

There are several common modeling rules that you need to follow when creating trading
diagrams:

TradingflowmovesfromSTARTtoENDblock.
Thetradingdiagrammusthaveatleastonecompletetradingpath.
STARTconnectstoTechnicalAnalysis(TA)only.
TechnicalAnalysis(TA)connectstoAND,OR,BUY,SELL,CLOSELONG,andCLOSESHORT
only.
ANDconnectstoBUY,SELL,CLOSELONG,andCLOSESHORTonly.
ORconnectstoBUY,SELL,CLOSELONG,andCLOSESHORTonly.
ENDreceivesconnectionsfromBUY,SELL,CLOSELONG,andCLOSESHORTonly.
Notes(textbox)cannotconnecttoanyblock.
If possible, rearrange your trading diagram to get rid of crossed lines and add a Note
with a short description of the trading strategy. Also, to avoid confusion, keep the
directionofthetradingflowconsistent.

Toomanyrules?Donotworry.MolanisStrategyBuilderwillnotallowyou

tomakeawrongconnection.

MovingAverageStrategy
Typically,twomovingaveragescanbeusedtocreateaforexstrategywiththeserules:

Buywhentheshortperiodmovingaverageisabovethelongperiodmovingaverage
Sellwhenthelongperiodmovingaverageisabovetheshortperiodmovingaverage

On the following graph from MetaTrader Terminal, the yellow line is the short period moving
average (9) and the red line is the long period moving average (18). So we could rewrite the
tradingrulesorforexsignalsas:

Buywhentheyellowlineisabovetheredline
Sellwhentheyellowlineisbelowtheredline

MolanisStrategyBuilder|UserManual

34

Insteadofspendingalongtimecodingthisforexstrategy,withMolanisStrategyBuilderyoucan
createatradingdiagramthatrepresentsthemovingaveragestrategyinminutes.Justdragand
droptwoTechnicalAnalysisblocks,oneBuyblockandoneSellblock.Connectthemandsetthe
blockparameterstogetadiagramlikethefollowing:

Thistradingdiagramhastwotradingpaths.Theleftoneishighlighted.ItgoesfromtheSTART
block to the END block. Remember to read the trading diagram in opposite direction to the
tradingflow.Onecouldreaditas:

MolanisStrategyBuilder|UserManual

35

Buy 1 lot of EURCAD (with a 100 pip Take Profit and 50 pip Stop Loss) when the short period
movingaverage(9)isabovethelongperiodmovingaverage(18).Howdoweknowtheshort
andlongperiod9and18?IfyoumovethemouseovertheTechnicalAnalysisblockandwaitfor
acoupleofsecondsyouwillseethefollowing:

Therighttradingpathcouldbereadas:Sell1lotofEURCAD(witha100pipTakeProfitand50
pip Stop Loss) when the long period moving average (18) is above the short period moving
average(9).

Molanis Strategy Builder uses the concept of open positions. If you are not hedging a new
EURCADBuyorderwillclosealloutstandingEURCADshortpositionsbeforebeingexecuted.On
thesamelines,anewEURCADSellorderwillclosealloutstandingEURCADlongpositionsbefore
being executed. If you hedge (your broker must allow hedging), a new order will not close
openedpositions.

You can turn this simple MA strategy into a moving average crossover
usingtheNextTradeManagementFeature

NextTradeManagement
Trading conditions (or signals) are created using one TA icon or several TA icons joined by an
ANDiconoranORicon.Whentradingconditionsaretrue,anactionisexecuted.BUY,SELL,CL,
CS,BUYP,SELLP,DELPareiconsthatexecuteactions(i.e.BUYopensanewlongposition).Thusa
basicmovingaveragestrategywouldbesomethinglikethis:
ATAiconwiththetradingconditionMAperiod9>MAperiod18,connectedtoaBUYicon(A
similarsettingforSELL).

MolanisStrategyBuilder|UserManual

36

Letssayyouareusingthestrategydefinedabove,andMAperiod9ishigherthanMAperiod18,
soanewpositionisopened(witha150pipstakeprofitand50pipsstoploss).Afterawhile,the
positionreachesitstakeprofitanditisclosedwithagainof150pips.Then,onthenextbar,MA
period9ishigherthanMAperiod18soanewpositionisopened.Thestrategyworksasdefined.
However some users do not get it. They ask why a new position is opened after take profit is
executed. The answer to their claims is its the way you define the strategy. Its not a ma
crossover.Itsjustasimplemastrategythatlooksatasimplecondition(IsMAperiod9higher
thanMAperiod18?Iftheanswerisyes,thenopenaposition).
A moving average (ma) crossover is more complex, it requires that you compare moving
averagesinthecurrentandthepreviousbar.Crossoverscanbedefinedindifferentwayseach
wayhasitsprosandcons.Youneedtoselectadefinitionthatworksforyou.Themainruleto
followistokeepabalancebetweensensitivityandnumberoftrades(Acrossovertoosensitive
will give you too many signals too many false signals. A crossover that is not sensitive will
makeyoumisssignals)
Creating a crossover: Conditions for BUY (for SELL use the opposite condition) select the
condition thatyoufeelmorecomfortablewith.(Thesearejustsomedefinitions.Ifyousearch
onlineyoucanfindmore.Ifyoufindanindicatorthatusesacrossoverthatyoulikeyoucanuse
itjustimportitintotheStrategyBuilder.)
1.MAFastbar0>MASlowbar0ANDMAFastbar1<MASlowbar1create2TAs
joinedbyAND
2.MAFastbar1>MASlowbar1ANDMAFastbar2<MASlowbar2
3.MAFastbar1>MASlowbar1ANDMAFastbar2<MASlowbar1

MolanisStrategyBuilder|UserManual

37

WhenwesayMAFastbar0>MASlowbar1itmeansmaindicatorvaluewhenshift=0>ma
indicatorvaluewhenshift=1;0isthecurrentbar,1isthepreviousbar,2isthebarbeforethe
previousbar.Atradingdiagramforamacrossoverlookslike:

Howcanyoumakeiteasier?HowcanIwaitforthenextsignalusingasimpleconditionMAfast
period>Maslowperiod?HowcanIenterthetradeinafreshsignal?
Theanswertoallthosequestionsisusethenexttrademanagementfeature.
TheTradeManagementfeaturecontrolsthenexttradeexecution.Ifyouusethedefaultoption,
nothing will happen. If you select Wait until an opposite trade is opened, a trade will be
executedbutthenexttradewillbeexecutedifthelasttradeisanoppositetrade.
Confused? Lets go over the ma example again but now with the next trade management
feature:
LetssayyouareusingthesimpleMAstrategy:ATAiconwiththetradingconditionMAperiod9
>MAperiod18,connectedtoaBUYicon(AsimilarsettingforSELL).

MolanisStrategyBuilder|UserManual

38

ButnowintheBUYandSELLiconchangetheTradeManagementparametertoWaituntilan
opposite trade is opened. At one point, MA period 9 is higher than MA period 18,soa new
positionisopened(witha150pipstpand50pipssl).Afterawhile,thepositionreachesitstp
anditisclosedwithagainof150pips.Then,onthenextbar,MAperiod9ishigherthanMA
period 18 BUT A NEW POSITION IS NOT OPENED. Why? You are using the next trade
managementfeature.Alongpositionwasopenedandclosedwithagainof150pips;toopena
newlongpositionashortpositionhastobeexecutedbefore.Thusthissimplestrategybehaves
likeacomplexmacrossoverbecauseitusestheTradeManagementoption.
Ifyouusethisfeature,definingcomplextradingconditionsiseasier.Pleasetakealookatour
examples page at Molanis.com. There you will find a simple ma strategy and a simple ma
strategythatusesthenexttrademanagementfeaturesoitbehaveslikeamacrossover.
PleasechecktheEASignalBuildericoninformationlaterinthisguideforeasierwaystobuild
acrossover.

DynamicStops

Inmanycases,havingahard/fixedstopinadynamicmarketdoesnotmakemuchsense.Why
wouldyouplacethesame20pipstopinbothaquietmarketandoneshowingvolatilemarket
conditions? Similarly, why would you risk the same 80 pips in both quiet and volatile market
conditions?

MolanisStrategyBuilder|UserManual

39

ATRandtheStandardDeviationmeasurethemarketvolatility.Theygiveanideaofhowfaran
asset's price is expected to move. Thus they can be used to determine how far away a profit
target/stoplosscanbeplacedfromtheentry.
For example, the blue line in the chart below shows an ATR value of 29 pips (or 0.0029). The
volatilityofthepricehasanaverageof29pipsoverthelast56hours(Thechartisa4hourchart
andtheATRhasaperiodof14so4*14=56)

Traderscanexpectthepriceonagiven4hourperiodtomoveby29pips.Ifthetrendthatyou
areobservinghasexceeded29pips,thenthetrendhasahigherprobabilityofcomingtoanend.
Ontheotherhand,avolatilitystopisstrategicasitallowsyoutoplaceastopatthepricepoint
thatisoutsidethenormalexpectedvolatilityoftheForexpair.ThereforeavolatilitySLgivesyou
therequiredlogicalexitincasethetradegoesagainstyou.
By multiplying the ATR or the Standard Deviation by a constant (multiplier), you ensure that
yourstopisdynamicandchangesappropriatelywithmarketconditions.

TheStrategyBuilderusesthefollowinglogictocreatethedynamicstop:
CalculatetheATRortheStandardDeviationinpips
Multiplyitbyamultiplier.InForextypicalmultiplierscangofrom2to6ormore.
Roundtheresulttogetapipvaluewithoutdecimals
Iftheresultishigherthanthemaximumstopthenthemaximumstopsisused

MolanisStrategyBuilder|UserManual

40

Iftheresultislowerthantheminimumstop,thentheminimumstopisused

Theminimumandmaximumvaluesforthedynamicstopsareboundariescreatedasvariablesin
MT4 to allow the EA to place a stop that is accepted by the Server. For example, if the
calculationroundnumberof(ATR*Multiplier)is5pipsandtheserveronlyallowsTPstarting
at20pips,theorderwillbeinvalid.Iftheminimumvalueissetto20pipsthen20willbeused
insteadof5andtheserverwillaccepttheorder.Youcanalsodefineamaximumnumberforthe
stopbutitisnotrequired.

TousedynamicstopsinyourExpertAdvisor,setthemupinthedropdownmenuoftheSELL+or
BUY+ icon. Type the amount to be used as the minimum stops, in the chart below 20 pips is
used.ThusboththeTPandSLwillbedynamicATRstopsthatuseaminimumvalueof20pips.

MolanisStrategyBuilder|UserManual

41

EverySELL+andeveryBUY+iconthatusedynamicstopswillgenerateMetaTradervariablesfor
you.Thisgivesyoucontrolonthedynamicstopsparameters.

MT4variableshaveanamingconventionlike:
S_Symbol_TPMIN_ATR_0

S_Symbol_TPMIN_ATR_0,SorBidentifyaSelloraBuy

S_Symbol_TPMIN_ATR_0,Symbolisthesymbolusedintrading

S_Symbol_TPMIN_ATR_0,TPMINidentifiesthevariable.Thefollowingoptionsareavailable:
Aminimuminpips(TPMINorSLMIN).Ifthecalculationofthedynamicstopislowerthanthe
minimumthentheminimumamountisused.
Amaximuminpips(TPMAXorSLMAX).Ifthecalculationofthedynamicstopishigherthanthe
minimumthenthemaximumamountisused.
A multiplier (TPMUL or SLMUL). Used to increase the ATR or Standard Deviation value. The
lowerthetimeframe,thehigherthemultipliertoobtainstopsthatareacceptedbytheserver.
A period (TPPERIOD or SLPERIOD). This is the period used in the ATR or Standard Deviation
calculation.

MolanisStrategyBuilder|UserManual

42

S_Symbol_TPMIN_ATR_0,ATRidentifiesthestoptypebetweenATRandStandardDeviation

S_Symbol_TPMIN_ATR_0,0KeepstrackofthenumberofSELL+orBUY+icons

ImportingCustomIndicatorsintoMolanisStrategyBuilder

YoucanaddanywellwrittencustomindicatorintotheStrategyBuilderwiththeImportCustom
Indicatorfeature.
UnderaTAblock,selectCustomIndicatoriCustom,andthenclickonImportCustomIndicator

Select the custom indicator you want to import. Custom Indicators must be located in the
indicators directory (C:\Program Files\MetaTrader 4\experts\indicators for standard
installationsofMT4).WhenanEAisexecuted,itlooksforthecompiledindicators(.ex4file)in
theindicatorsdirectory.
Tousetheimportfeatureyouneedthe.mq4file(indicatorscode).Theimportfeaturedoesnot
workon.ex4files(compiledindicators).

MolanisStrategyBuilder|UserManual

43

The import custom indicator feature reads the indicator code and based on standard rules of
coding gets the number of modes (signals) and the indicator parameters. This feature cannot
selectthemodeorshiftforyou.It'syourjobtoknowtherightsignalandparametersforyour
EA

InCustomIndicatorsiCustom,Whatismodeandshift?
Mode:Itsalineindexthatrangesfrom0to7.MT4allowsupto8indicatorlinespercustom
indicator.Modeisusedtoidentifyoneoftheavailableindicatorlines.Ifyouhave8linesinyour
graph,eachonegivesyouanoutput.Withmodeyouselectthelineyouneed.Mostofthetime
indicatorshaveonelineso0shouldbeused.(i.e.Ifyouhavethreeindicatorlinesandyouwant
tousethesecondlineoutput,1shouldbeused.Rememberthatanumberfrom0to7shouldbe
used)

Shift:Shiftrelativetothecurrentbarthegivenamountofperiodsago.Ifyouwantthevalueof
theindicatorbutforthepreviousbaryouuseashiftof1.Toobtainthevalueforthecurrent
bar,0shouldbeused.Thisfeatureisusedwhencomparingthevalueforthecurrentbarwith
thevalueofthepreviousbar.
MolanisStrategyBuilder|UserManual

44

Seesomecustomindicatorexampleshere
http://www.molanis.com/forum/viewtopic.php?f=3&t=162

SomeMQLReview
(JusttoputthingsintocontextIfyoudonotwantatechnicalexplanationoncustomindicators
pleaseskipthissection)

TheideaofMolanisproductsistoavoidwriting/learningMQLcode.However,weexplainabit
heretoputthingsintocontext.
IfyoulookatthecodeofanEAyoucouldfindsomethinglikethis:
iCustom("EURUSD",PERIOD_M1,"SampleMolanis",14,1,0)
iCustomistheMQLcommandthatcallsacustomindicatorandreturnitsvalue.

MetaQuotesiCustomofficialdocumentationincludesthefollowing:

doubleiCustom(stringsymbol,inttimeframe,stringname,...,intmode,intshift)
Calculates the specified custom indicator and returns its value. The custom indicator must be
compiled(*.EX4file)andbeintheterminal_directory\experts\indicatorsdirectory.
Parameters:
symbol Symbol the data of which should be used to calculate indicator. NULL means current
symbol.
timeframe Timeframe. It can be any of Timeframe enumeration. 0 means the current chart
timeframe.
nameCustomindicatorcompiledprogramname.
...Parametersset(ifnecessary).Thepassedparametersandtheirordermustcorrespondwith
thedeclarationorderandthetypeofexternvariablesofthecustomindicator.
mode Line index. Can be from 0 to 7 and must correspond with the index used by one of
SetIndexBuffer
shift Index of the value taken from the indicator buffer (shift relative to the current bar the
givenamountofperiodsago).

MolanisStrategyBuilder|UserManual

45

Sample:
doubleval=iCustom(NULL,0,"SampleInd",13,1,0);

ThusfromiCustom("EURUSD",PERIOD_M1,"SampleMolanis",14,1,0)wecanobtain:

Symbol="EURUSD"
Timeframe=PERIOD_M1
Name="SampleMolanis"
Parameters=14
Mode=1
Shift=0

Payattentiontothe"..."option(Parameters).Customindicatorshaveparameters;probablyyou
usethembutarenotaware.WidelyusedexamplesofparametersaretheperiodforanMAand
the K and D periods for stochastic. Parameters are all inputs that change the value of the
indicators. Parameters are those variables that you play with to get the best set up for your
custom indicator. In this case the only parameter is 14. For a second imagine another custom
indicatorwithtwoparameters.Itcouldbesomethinglikethis:
iCustom("EURUSD",PERIOD_M1,"SecondSampleMolanis",8,1,1,0)
Inthatcase:Parameters=8,1
Theaboveisjusttoillustratethecaseforindicatorswithmorethan1parameter.Let'sgoback
toiCustom("EURUSD",PERIOD_M1,"SampleMolanis",14,1,0)anddigintosomepoints.

Shiftiswhichbarthecalculationisbeingperformedupon.Barsarenumbered0,1,2,3,4,5,6,
7... as you go back in time on the chart. Changing the shift option is similar to moving the
indicatorlineintothefutureorthepast.
Ifyouwantthevalueoftheindicatorbutforthepreviousbaryouuseashiftof1.Toobtainthe
valueforthecurrentbar,0shouldbeused.Forexampletogetthedirectionofthetrendyou
coulduse:

MolanisStrategyBuilder|UserManual

46

MAnowshift=0(currentbar)>MAonebaragoshift=1(previousbar)
Iftheabovetradingconditionistrue,itmeanstrendisup!

InplainEnglish,use:
shift=0togettheindicator'svalueofthecurrentbar(stillforming)
shift=1valueonthepreviousbar
shift=2valueinabarbeforethepreviousbar

Mode is a line index that ranges from 0 to 7. MT4 allows up to 8 indicator lines (signals) per
custom indicator.Modeisusedtoidentifyaspecificline/signal oftheavailableindicator lines
(signals).
Visualizethis:Yourindicatorhas8lines/signals(orarrows)withdifferentcolors:Eachlinegives
youanoutput;eachlinehasavalue.Withmodeyouselecttheline(signal)thatyouneedfor
yourEA(justoneoutofeight).Mostofthetime,indicatorshaveonlyoneline/signalsomode=0
shouldbeused.

Thetrickypartisthisone:BecauseMT4'sindexgoesfrom0to7,modetakesvaluesfrom0to7.
Sothefirstsignalhasamode=0(andnot1)

InplainEnglish:
Ifyourindicatorhasthreeindicatorlines/signalsandyouwanttogetthevalueforthefirstline,
youusemode=0,thevalueforthesecondline/signalisobtainedwithmode=1,andmode=2will
getthevalueforthethirdsignal.

Torecap,iCustom("EURUSD",PERIOD_M1,"SampleMolanis",14,1,0)givesyou:
theindicatorvalueofthecustomindicatorSampleMolanis(thismeansthereisanindicatorin
theindicatordirectorycalledSampleMolanis.ex4andthecodefortheindicatorcanbefoundin
SampleMolanis.mq4)
withaperiod(Parameter)of14

MolanisStrategyBuilder|UserManual

47

forthepairEURUSD
froma1minutechart(PERIOD_M1)
valueobtainedfromthesecondsignal(mode=1)
fromthecurrentbar(shift=0)

Donotworry,theStrategyBuilderwillhelpyoutointegratecustomindicatorsintoyourea,just
rememberthereasonsbehindiCustomandtheintegrationprocess.

GeneratingtheMQLcodeforMetaTrader

OntheTradingDiagramMenu,clickonGenerateMQL4CodetogettheMQL4Codewindow.

MolanisStrategyBuilderallowsyoutoopenyourexpertadvisordirectlywithMetaTrader.

MolanisStrategyBuilder|UserManual

48

EASIGNALBUILDER
Overview

SB

The EA Signal Builder is an icon that uses the latest


technology of visual coding so you can create your trading
signals visually. THIS ICON IS ONLY AVAILABLE IN PRO
VERSIONS.

MolanisStrategyBuilder|UserManual

49

TheEASignalBuilderisarealWYSIWYGsignalbuilder.WYSIWYGisanacronymfor"WhatYou
SeeIsWhatYouGet".ItmeansthatyoucancreateyourownForexsignalscopyingwhatyou
seeinatradingchart.

The image above represents a moving average crossover with a bar reversal. This signal was
createdreplicatingthechartfromMetaTraderintheEASignalBuilder.

Check the EA Signal Builder video tutorial and examples at

www.molanis.com

The EA Signal Builder allows users to create trading signals. Those signals act as triggers to
executeactionslikeBUYandSELL.ThefollowingtradingdiagramshowsabasicEA.

TheEASignalBuildericonisusedliketheTAandTA+icons.Youcanconnectittoanytrading
iconintheStrategyBuildertocreatepowerfulExpertAdvisors.

Interface

TheEASignalBuilderhastwomainpanels:Thebarpanelandthelinespanel.Inthebarpanel
you create signals based on bars and indicators. In the line panel you create signals based on
indicators.

CreatingSignalsisreallysimplejustdragbarsandindicatorlines,anddropthemintothepanels.
Adjustthepriceinthebarsusingyourmouseanddefinetheindicatorvaluesforthelines.

MolanisStrategyBuilder|UserManual

50

MainOptions

Show / Hide grid : The grid is important because it helps when comparing points located in
differentpositions
ConnectIndicators:Youcanconnectindicatorsthataredefinedforconsecutivepositions
Zoomin/Zoomout
Undo/Redo
Save/OpenSignals:Youcansaveyoursignalsasfilestobereusedinotherstrategiesortobe
sharedwithothertraders
CodeGenerationSettings:Thisistheplacewhereyoucandefinedifferentoptionsrelatedto
codegeneration.Usersshouldusecolormarkersasthepreferredoptionforcreatingsignals.
Show/Hidescale:Thescaleisonlyrequiredandonlyprovidevaluableinformationifyouadd
lineswithnumericvaluesorconstantsi.e.line=25Ifyouarenotusinglineswithnumericvalues
orconstantthescalewillgenerateanautomaticscaleforyoutohavearelativesenseofpoint
locations.
Show/Hidebarlabels:Showsbarprices
Show/Hidelinelabels:Showsasummaryofthelinevalue(usuallyashortdescriptionofthe
indicator)
SignalName:Aplacetodefinethesignalnameasashorttext
Colormarkers:Toactivate/deactivatecolormarkers.

MulticurrencyMultitimeframeSignals

There are more options using the mouse right click button. The Change Instrument and
Timeframe allows users to set up the bars for a specific currency and timeframe, which is
recommendedonlyformulticurrencymultitimeframeeas.

MolanisStrategyBuilder|UserManual

51

The window title shows the pair and timeframe for the signal. If you are not creating multi
timeframeormulticurrencyyoushouldnotassignapairortimeframetoyoursignal.Thiswayit
willworkforanycurrencyandanytimeframe.

BarPosition

Thebarpositionscorrespondtothebarid.i.e.0isthecurrentbar,1isthepreviousbar.Mostof
thetimeitisrecommendedtoavoidusingposition0(currentbar)unlessyoutradeticksoryour
indicatorvaluesarecalculatedusingtheopenprice.

Tooltips

Tooltipsareshownatanypointplacingthemousecursorontopofaniconandwaitingfora
second.Tooltipsexplaintheiconspurpose.

ColorMarkers

Thebestfeatureofthe EASignalBuilderisthepossibilitytousecolormarkerstodefineyour
signalspointbypoint.Selectacolor,markapointinabarorinanindicatorline.Markasecond
ormorepointsandtheEASignalBuilderwillgeneratecodethatcomparesthemarkedpoints.
Werealizedthattheeasiestwaytodefinewhattocompareinachartisjustaddingmarkers
colormarkers.Userscanselectacolor,markapoint(abarpriceand/orindicator),andmarka
second(ormorepoints);andtheEASignalBuilderwillgeneratecodethatcomparethemarked
points.

Please be aware that color markers for lines are not shown if you select the option Show as
Candlestickchart.

ColorMarkers:SignalExample
Thefollowingsignalismadeofonebearishbar,followedbytwobullishbarsthatmakehigher
highsandhigherlows.

Tostartaddthebarstothechart,andselectcolormarkers.Thenselectblackasthecolorfor
ColorMarker.

MolanisStrategyBuilder|UserManual

52

Toaddtheblackcolormarket,clickontheBlackcoloroptionontheleft,andthenclickonthe
lowpriceofbar3.Thenclickonthelowpriceofbar2.Atthispointtheblackcolormarkeris
comparingthelowpriceofbar3andthelowpriceofbar2.

IfyouclickontheShowCodeoptionfortheColorMarkerblackawindowshowsthiscode:

ThecodecanbeexplainedasThelowpriceinthebarinposition2ishigherthatthelowprice
ofthebarinposition3

Ifyoucontinueandmarkbar1withtheblackColorMarkerandthenwithanewColorMarker
Blueyoumarkthehighofthebarsyouendupwithasignallike:

MolanisStrategyBuilder|UserManual

53

Two different color markers were used. One to compare the high prices, and one to compare
thelowprices.Youneedtouseacolormarkerperlogicsequence.

Pleasenotethatposition0isnotusedforthefollowingreasons:
Ifyoutradebars,tradingconditionsareevaluatedattheopenofthecurrentbar(bar0).Atthat
timeOpen=High=Low=Closesincethecurrentbarisformedbyoneticktheopentick
Thecurrentbar(bar0)isforming;itchangeseverytimeyougetanewtick(priceupdate).Thus
signals that use the High, Low, and Close price in the bar 0 are not reliable since those prices
maychange.Indicatorsandsignalsthatonlyusetheopenpricearereliable.
Ifyoutradeticksallsignalsfromthecurrentbar(bar0)aretemporalandmaychange.Thusyou
maygetmanyfalsesignals(Signalsthatchange)
Manytradersknowtheissuesrelatedtotradingthecurrentbaranddecidetotradeitanyway
sincethebenefitsoutweighthedownsides.

ThereasonsmentionedabovearerelatedtothewayMT4worksandnottoourproducts.

If you use color markers, all other options to compare lines, bars and prices will be inactive.
UnderCodeGenerationSettingstheColorMarkershaveoneoption:
GenerateCodetoidentifybullishandbearishbars.

Ifthatoptionischecked,thegeneratedcodewilladdcodetoidentifythedirectionofthebar
i.e.Open>Closeforred/bearishbarsorClose>Openforgreen/bullishbars

MolanisStrategyBuilder|UserManual

54

Inthefollowingimagethefirstthreelinesofcodeidentifyabearish/redbarinposition3,and
twobulish/greenbarsinpositions2and1.

If you unmark the option under code settings Generate Code to identify bullish and bearish
bars.,thegeneratedcodewillomitthosethreelines.

Users are encouraged to only use the Color Markers since they are simple to use and really
powerful.ExpertusersarealsoencouragedtousetheCodeGenerationSettingsthataremore
complexandrequireabetterunderstandingofautomatedtrading.

MolanisStrategyBuilder|UserManual

55

SharingSignals

You can share signals saving them as files that are ready to be used when creating expert
advisorswiththeStrategyBuilder

Lines

Whenyoudraganddropalineintothepanels,anewwindowisopenedforyoutoselectthe
technicalindicatorassociatedtotheline:

Ifyouwanttousecustomindicators,lookfortheoptioncustomindicatorunderthedropdown
menu.ThenclickontheImportCustomIndicatorbutton.

Advancedlines

UsetheAdvancedlineeditortocreatecomplexsignalsandformulas.TheEASignalBuilderwill
understandyoursignalsgeneratingthecodeforyourExpertAdvisor.

TocreateanadvancedlineclickontheAdvancedbutton

MolanisStrategyBuilder|UserManual

56

Anewwindowopens.Clickonthe+greenicontoaddanewitemtotheequation.Select+and
fromthedropdownmenuselectClose

SofartheindicatorlinewillhaveavalueequaltoOpen+Close.Clickonthe+greenicononthe
left.Select/andthenselectuserdefinednumberfromthedropdownmenu.

Thelinenowhasavalueof(Open+Close/Anumber).Ifyousettheuserdefinednumberto2,
thelinevaluewillbetheaverageoftheOpenandCloseprices(Open+Close)/2

AdvancedCodeGenerationSettings

Inthecodegenerationsettings,onecandefinehowthebarcomparison,linecomparison,and
barlinecomparisontakesplacewhenColorMarkersarenotbeingused.

Users are encouraged to use color markers first instead of the Advanced Code Generation
Settingssincetheyaresimplerandmorepowerful.

ThefollowingexampleshowshowtousetheAdvancedCodeGenerationSettings:Addtwobars
tothebarpanel.Movethebarpricesuntiltheylooksimilartothefollowingchart.

MolanisStrategyBuilder|UserManual

57

IfyougototheAdvancedCodeGenerationsettingsandclickoncodepreviewyouwillseecode
that identifies a bearish bar followed by a bullish bar. No other price comparison is made by
default.

To compare the prices of the two bars, go to Compare bars by price, and add a comparison
betweenposition1andposition2asshowninthefollowingimage:

MolanisStrategyBuilder|UserManual

58

Nowacomparisonbetweenthetwobarspricesismadeandthegeneratedcodelookslike:

Everypricepointofthebullishbariscomparedwitheverypricepointofthebearishbar.

Ifyoualsowanttocomparetherelativesizeofthebars,gotoComparebarsbysizeandadda
comparisonbetweenposition1andposition2:

MolanisStrategyBuilder|UserManual

59

Therelativesizeiscalculatedusingthegriddistance

Manualcodeeditionforadvancedusers

If you are familiar with MQL code and want to change the generated code, go to Generated
CodePreviewandusethemouserightclickoptiontoediteachlineofcode.

MolanisStrategyBuilder|UserManual

60

Pleasebeawarethatchangingthecodemanuallylocksthecodeandnewchangestothesignal
likeaddingbarsandlineswillnotbereflectedinthecode.

Linecomparisonsettings

Usethesesettings todecideifyouwanttocomparelineswithlines,lineswithbars,and only


similarlines.

MolanisStrategyBuilder|UserManual

61

GLOSSARY
EA Expert Advisor short program written in MQL that implements a forex strategy. EAs are
automatedprogramsthatinvestforyou.
MQL MetaQuotes Language is the language used to write expert advisors (EA, or forex
strategies)andtechnicalindicatorsforMetaTrader.
TRADINGBLOCKSmaincomponentsofatradingdiagram.

MolanisStrategyBuilder|UserManual

62

LICENSEAGREEMENT

NOTE: The most updated license is installed with this product. You can find it in the directory
whereyouinstalledthisproduct.
WARNING:Thisprogramisprotectedbycopyrightlawandinternationaltreaties.
MOLANISSOFTWARELICENSEAGREEMENT
ENDUSERLICENSEAGREEMENTFORMOLANISSOFTWAREMolanisStrategyBuilder
NOTICE TO USER: PLEASE READ THIS CONTRACT CAREFULLY. BY USING ANY PORTION OF THE
MOLANIS STARTEGY BUILDER SOFTWARE ("SOFTWARE") YOU ACCEPT ALL THE TERMS AND
CONDITIONSOFTHISAGREEMENT.ALSOYOUAGREETHATTHISAGREEMENTISENFORCEABLE
LIKE ANY WRITTEN NEGOTIATED AGREEMENT SIGNED BY YOU. THIS AGREEMENT IS
ENFORCEABLEAGAINSTYOUANDANYLEGALENTITYTHATOBTAINEDTHESOFTWAREANDON
WHOSEBEHALFITISUSED.IFYOUDONOTAGREE,DONOTUSETHISSOFTWARE.
MolanisownsallintellectualpropertyintheSoftware.MolanispermitsyoutoUsetheSoftware
onlyinaccordancewiththetermsofthisAgreement.

1.Definitions."Software"means(a)allofthecontentsofthefiles(providedeitherbyelectronic
download,onphysicalmediaoranyothermethodofdistribution),disk(s),CDROM(s)orother
mediawithwhichthisAgreementisprovided,includingbutnotlimitedto(i)MolanisStrategy
Builder software (ii) related explanatory written materials or files ("Documentation"); and (iii)
upgrades,modifiedversions,updates,additions,andcopiesoftheSoftware,ifany,licensedto
you by Molanis (collectively, "Updates"). "Use" or "Using" means to access, install, download,
copy,orotherwisebenefitfromusingthefunctionalityoftheSoftwareinaccordancewiththe
Documentation. "Permitted Number" means one (1) unless otherwise indicated under a valid
license(e.g.,volumelicense)grantedbyMolanis."Computer"meansanelectronicdevicethat
acceptsinformationindigitalorsimilarformandmanipulatesitforaspecificresultbasedona
sequence of instructions. "Term" means duration granted to you for the use of the software.
"Molanis"meansMolanis,Canadiancorporation,locatedonTorontoM4P0A5.

2.SoftwareLicense.IfyouobtainedtheSoftwarefromMolanis,andsubjecttoyourcompliance
with the terms of this agreement (this "Agreement"), Molanis grants to you a nonexclusive,
limited,personallicensetoUsetheSoftwareduringtheTermtousetheSoftwareandforthe
purposesdescribedintheDocumentationasfollows.

MolanisStrategyBuilder|UserManual

63

2.1GeneralUse.YoumayinstallandUseacopyoftheSoftwareonyourcompatibleComputer,
uptothePermittedNumberofcomputers.TheSoftwaremaynotbeshared,installedorused
concurrentlyondifferentcomputers.

2.2 No Modification. You may not modify, adapt, translate or create derivative works based
upon the Software. You may not reverse engineer, decompile, disassemble or otherwise
attempttodiscoverthesourcecodeoftheSoftware.

2.3 YOUR USE OF THE SOFTWARE IS AT YOUR OWN RISK. MOLANIS MAKES NO WARRANTIES,
CONDITIONS,INDEMNITIES,REPRESENTATIONSORTERMS,EXPRESSORIMPLIED,WHETHERBY
STATUTE, COMMON LAW, CUSTOM, USAGE OR OTHERWISE AS TO ANY OTHER MATTERS,
INCLUDING BUT NOT LIMITED TO NONINFRINGEMENT OF THIRD PARTY RIGHTS, TITLE,
INTEGRATION,ACCURACY,SECURITY,AVAILABILITY,SATISFACTORYQUALITY,MERCHANTABILITY
ORFITNESSFORANYPARTICULARPURPOSE.Becausesoftwareisinherentlycomplexandmay
notbecompletelyfreeoferrors,youareadvisedtoverifyyourwork.InnoeventwillMolanis
beliablefordirect,indirect,special,incidental,orconsequentialdamagesarisingoutoftheuse
oforinabilitytousethesoftware,hardware,ordocumentation,evenifadvisedofthepossibility
of such damages. In particular, Molanis is not responsible for any costs, including, but not
limited to, those incurred as a result of the use of the software, loss of data, the costs of
recoveringsuchsoftwareordata,thecostofsubstitutesoftware,claimsbythirdparties,orfor
othersimilarcosts.

2.4 Indemnity. You agree to hold Molanis harmless from any and all liabilities, losses, actions,
damages,orclaims(includingallreasonableexpenses,costs,andattorneysfees)arisingoutof
orrelatingtoanyuseof,orrelianceon,theSoftware.Becausesoftwareisinherentlycomplex
andmaynotbecompletelyfreeoferrors,youareadvisedtoverifyyourwork.Innoeventwill
Molanisbeliablefordirect,indirect,special,incidental,orconsequentialdamagesarisingoutof
theuseoforinabilitytousethesoftware,hardware,ordocumentation,evenifadvisedofthe
possibilityofsuchdamages.Inparticular,Molanisisnotresponsibleforanycosts,including,but
not limited to, those incurred as a result of the use of the software, loss of data, the costs of
recoveringsuchsoftwareordata,thecostofsubstitutesoftware,claimsbythirdparties,orfor
othersimilarcosts.

2.5 Limit of Liability. UNDER NO CIRCUMSTANCES WILL MOLANIS BE LIABLE TO YOU, OR ANY
OTHER PERSON OR ENTITY, FOR ANY LOSS OF USE, REVENUE OR PROFIT, LOST OR DAMAGED
MolanisStrategyBuilder|UserManual

64

DATA, OR OTHER COMMERCIAL OR ECONOMIC LOSS OR FOR ANY DIRECT, INDIRECT,


INCIDENTAL, SPECIAL, STATUTORY, PUNITIVE, EXEMPLARY OR CONSEQUENTIAL DAMAGES
WHATSOEVER RELATED TO YOUR USE OF THE SOFTWARE. IN NO EVENT WILL MOLANIS BE
LIABLETOYOUFORANYDAMAGES,CLAIMSORCOSTSWHATSOEVERORANYCONSEQUENTIAL,
INDIRECT,INCIDENTALDAMAGES,ORANYLOSTPROFITSORLOSTSAVINGS,EVENIFAMOLANIS
REPRESENTATIVEHASBEENADVISEDOFTHEPOSSIBILITYOFSUCHLOSS,DAMAGES,CLAIMSOR
COSTS OR FOR ANY CLAIM BY ANY THIRD PARTY. In no case shall Molanis' liability exceed the
amountofthelicensefee.

2.6TermandTermination.ThetermgrantedtoyoufortheuseoftheSOFTWAREisfor1year.
ThetermofthisAgreement(the"Term")willcommenceonthedateyoubuytheSoftware,and
willcontinueuntilterminatedbyeitherparty.YoumayterminatethisAgreementatanytimeby
deinstallingtheSoftwareanddestroyingallcopiesoftheSoftwareinyourpossessionorcontrol.
MolanismayterminatethisAgreementatanytime foranyreasonornoreason.Molanis may
terminate this agreement before the term is completed if you fail to comply with any of the
terms and conditions of this agreement. In such event, you must destroy all copies of the
SOFTWARE.Molaniswillmakecommerciallyreasonableeffortstoprovidenoticeoftermination
throughadialogboxdisplayedbytheSoftwarewhenthetermhasexpired,butnosuchnotice
will be required in order for Molanis' termination to be effective. On the expiration or
terminationofthisAgreement,youwillceaseusingtheSoftware,andtheSoftwaremaycease
functioning.

3.Transfer.Youmaynotrent,lease,sublicense,assignortransferyourrightsintheSoftware,or
authorizealloranyportionoftheSoftwaretobecopiedontoanotheruser'sComputerexcept
as may be expressly permitted herein. You may, however, transfer all your rights to Use the
Softwaretoanotherpersonorlegalentityprovidedthat:(a)youalsotransfer(i)thisAgreement,
and (ii) the Software and all other software or hardware bundled or preinstalled with the
Software, including all copies, Updates and prior versions, to such person or entity, (b) you
retainnocopies,includingbackupsandcopiesstoredonaComputer,and(c)thereceivingparty
acceptsthetermsandconditionsofthisAgreementandanyothertermsandconditionsupon
whichyoulegallypurchasedalicensetotheSoftware.Notwithstandingtheforegoing,youmay
nottransfereducation,prerelease,ornotforresalecopiesoftheSoftware.

4. Intellectual Property Ownership, Copyright Protection. The Software and any authorized
copiesthatyoumakearetheintellectualpropertyofandareownedbyMolanis.Thestructure,
organization and code of the Software are the valuable trade secrets and confidential
information of Molanis. The Software is protected by law, including without limitation the
copyrightlawsofCanadaandothercountries,andbyinternationaltreatyprovisions.Exceptas
MolanisStrategyBuilder|UserManual

65

expressly stated herein, this Agreement does not grant you any intellectual property rights in
theSoftwareandallrightsnotexpresslygrantedarereservedbyMolanis.

5.Updates.IftheSoftwareisanUpdatetoapreviousversionoftheSoftware,youmustpossess
avalidlicensetosuchpreviousversioninordertoUsesuchUpdate.AllUpdatesareprovidedto
youonalicenseexchangebasis.YouagreethatbyUsinganUpdateyouvoluntarilyterminate
your right to use any previous version of the Software. As an exception, you may continue to
UsepreviousversionsoftheSoftwareonyourComputerafteryouUsetheUpdatebutonlyto
assist you in the transition to the Update, provided that: (a) the Update and the previous
versionsareinstalledonthesamecomputer;(b)thepreviousversionsorcopiesthereofarenot
transferredtoanotherpartyorComputerunlessallcopiesoftheUpdatearealsotransferredto
such party or Computer; and (c) you acknowledge that any obligation Molanis may have to
supportthepreviousversionsoftheSoftwaremaybeendeduponavailabilityoftheUpdate.In
no event shall Molanis be obligated to provide you with Updates following the expiration or
terminationofthisAgreement,andinitssolediscretionmayterminateupdatesforanyversion
oftheSoftwareotherthanthemostcurrentversion.

6. NO WARRANTY. The Software is being delivered to you "AS IS" and Molanis makes no
warranty as to its use or performance. Molanis provides no technical support, warranties or
remediesfortheSoftware.MOLANISCANNOTWARRANTTHEPERFORMANCEORRESULTSYOU
MAYOBTAINBYUSINGTHESOFTWARE.

7. Governing Law. This Agreement will be governed by and construed in accordance with the
substantive laws in force: (a) in the province of Ontario, Canada. This Agreement will not be
governed by the conflict of law rules of any jurisdiction or the United Nations Convention on
ContractsfortheInternationalSaleofGoods,theapplicationofwhichisexpresslyexcluded.

8.GeneralProvisions.IfanypartofthisAgreementisfoundvoidandunenforceable,itwillnot
affect the validity of the balance of this Agreement, which shall remain valid and enforceable
according to its terms. This Agreement shall not prejudice the statutory rights of any party
dealing as a consumer. This Agreement may only be modified by a writing signed by an
authorized officer of Molanis. Updates may be licensed to you by Molanis with additional or
differentterms.ThisistheentireagreementbetweenMolanisandyourelatingtotheSoftware
and it supersedes any prior representations, discussions, undertakings, communications or
advertisingrelatingtotheSoftware.

MolanisStrategyBuilder|UserManual

66

9.CompliancewithLicenses.Ifyouareabusinessororganization,youagreethatuponrequest
from Molanis or Molanis' authorized representative, you will within thirty (30) days fully
documentandcertifythatuseofanyandallSoftwareatthetimeoftherequestisinconformity
withyourvalidlicensesfromMolanis.

10.PrereleaseProduct Additional Terms.If the productyouhavereceived with thislicenseis


precommercial release or beta Software ("Prerelease Software"), then the following Section
applies. To the extent that any provision in this Section is in conflict with any other term or
condition in this Agreement, this Section shall supersede such other term(s) and condition(s)
with respect to the Prerelease Software, but only to the extent necessary to resolve the
conflict. The term granted to you for the use of the prerelease version is for 15 days or the
indicated when installing the software. You acknowledge that the Software is a prerelease
version,doesnotrepresentfinalproductfromMolanis,andmaycontainbugs,errorsandother
problemsthatcouldcausesystemorotherfailuresanddataloss.Consequently,thePrerelease
Softwareisprovidedtoyou"ASIS",andMolanisdisclaimsanywarrantyorliabilityobligationsto
youofanykind.WHERELIABILITYCANNOTBEEXCLUDEDFORPRERELEASESOFTWARE,BUTIT
MAYBELIMITED,MOLANIS'LIABILITYSHALLBELIMITEDTOTHESUMOFONEDOLLARS(U.S.$1)
IN TOTAL. You acknowledge that Molanis has not promised or guaranteed to you that Pre
releaseSoftwarewillbeannouncedormadeavailabletoanyoneinthefuture,Molanishasno
expressorimpliedobligationtoyoutoannounceorintroducethePrereleaseSoftwareandthat
Molanis may not introduce a product similar to or compatible with the Prerelease Software.
Accordingly,youacknowledgethatanyresearchordevelopmentthatyouperformregardingthe
PrereleaseSoftwareoranyproductassociatedwiththePrereleaseSoftwareisdoneentirelyat
your own risk. During the term of this Agreement, if requested by Molanis, you will provide
feedback to Molanis regarding testing and use of the Prerelease Software, including error or
bugreports.

11.InjunctiveRelief.ThepartiesagreethatifyouutilizeorotherwiseuseanyoftheSOFTWARE
in an unauthorized manner, or breach the remaining terms and conditions of this agreement,
that such use or breach would have a devastating and serious impact on Molanis continuing
ability to compete profitably and would, therefore, result in immediate and irreparable injury,
lossordamagetoMolanis.Thepartiesagreethatinsuchevent,inadditiontoMolanisrightto
recover damages for a breach of this agreement, Molanis would be entitled to obtain a
temporaryrestrainingorderorapreliminaryinjunctionfromacourtofcompetentjurisdictionto
preventYou,youremployees,agents,consultants,orindependentcontractorsfromengagingin
any further use of the SOFTWARE or the continued breach of the remaining terms and
conditionsofthisagreement.

MolanisStrategyBuilder|UserManual

67

12. Miscellaneous. You acknowledge that Molanis collects and sends to Molanis certain
information regarding the users of the Software, including certain personally identifiable
information as well as certain information from the user's computer, including certain
information about your computer software and hardware such as your IP address, operating
system,Webbrowsersoftwareandversion.YouherebyconsenttoMolanis'collectionanduse
of such information, and agree that Molanis' collection and use of such information will be
governedbyMolanis'PrivacyPolicy.

If you have any questions regarding this Agreement or if you wish to request any information
fromMolanispleaseusetheaddressandcontactinformationincludedwiththisproductorvia
thewebatwww.molanis.com
Molanis.Wehelptraders!

WARNING:Tradinghaslargepotentialrewards,butalsolargepotentialrisk.Youmustbeaware
oftherisksandbewillingtoaccepttheminordertoinvest.Don'ttradewithmoneyyoucan't
afford to lose. The past performance of any trading system or methodology is not necessarily
indicative of future results. Hypothetical or simulated performance results have certain
limitations. Unlike an actual performance record, simulated results do not represent actual
trading. Also, since the trades have not been executed, the results may have underorover
compensatedfortheimpact,ifany,ofcertainmarketfactors,suchaslackofliquidity.Simulated
tradingprogramsingeneralarealsosubjecttothefactthattheyaredesignedwiththebenefit
ofhindsight.
The risk of loss in trading foreign exchange markets (FOREX), also known as cash foreign
currencies, the interbank market or the FOREX markets, can be substantial. You should
therefore carefully consider whether such trading is suitable for you given your financial
condition. FOREX trading involves substantial risk and is not for all investors. Investments or
tradingintheFOREXmarketscanbehighlyspeculativeandshouldonlybedonewithriskcapital
whichyoucanaffordtoloseandthat,iflost,wouldnotchangeoradverselyaffectyourlifestyle.
Thehighdegreeofleveragethatisoftenpossibleinforeignexchangetradingcanworkforyou
aswellasagainstyou.Theuseofleveragecanleadtolargelossesaswellasgains.ALTHOUGHIT
ISPOSSIBLETOPROFITBYTRADINGFOREIGNEXCHANGE,ITISALSOPOSSIBLETOLOSE100%OF
YOURDEPOSIT.

MolanisStrategyBuilder|UserManual

68

You might also like